---
title: "Get Mcp User Env Vars"
method: GET
path: "/v1/mcp/server/{server_id}/user-env-vars"
tags: ["mcp_management"]
---

# Get Mcp User Env Vars

`GET /v1/mcp/server/{server_id}/user-env-vars`

## Request

- Base URL: `https://api.sea-lion.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.sea-lion.ai/v1/mcp/server/{server_id}/user-env-vars`
- Auth: API key in header `x-litellm-api-key`

Return the calling user's per-user MCP env var status for this server.

## Path parameters

- `server_id` string, required

## Response `200`

Successful Response

- MCPUserEnvVarsStatus: Per-user env var status for a single MCP server.
  - `alias` string, nullable
  - `missing_count` integer
  - `required` MCPUserEnvVarSpec[]
    - `description` string, nullable
    - `is_set` boolean
    - `name` string, required
  - `server_id` string, required
  - `server_name` string, nullable
  - `setup_url` string, nullable

## Other responses

- `422`: Validation Error

## Changes

- **2026-10-21** `f2fb14eab3f5`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/sea-lion/apis/litellm-api/changes/v1/mcp/server/:server_id/user-env-vars/get.md)

---

[API](https://skmtc.dev/sea-lion/apis/litellm-api.md) · [All operations](https://skmtc.dev/sea-lion/apis/litellm-api/llms.txt) · [OpenAPI document](https://skmtc.dev/sea-lion/apis/litellm-api/revisions/f2fb14eab3f5?raw)
