---
title: "Store Mcp User Credential"
method: POST
path: "/v1/mcp/server/{server_id}/user-credential"
tags: ["mcp"]
---

# Store Mcp User Credential

`POST /v1/mcp/server/{server_id}/user-credential`

Store or update the calling user's API key for a BYOK MCP server

## Path parameters

- `server_id` string, required

## Request body

- MCPUserCredentialRequest
  - `credential` string, required
  - `save` boolean

## Response `200`

Successful Response

- MCPUserCredentialResponse
  - `server_id` string, required
  - `has_credential` boolean, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/sea-lion/apis/litellm-api.md) · [All operations](https://skmtc.net/sea-lion/apis/litellm-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/sea-lion/litellm-api/revisions/79928a3d37d3/schema)
