---
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`

## Request

- Base URL: `https://api.vibebrowser.app` (the document declares no server; this is the origin it was published from)
- URL: `https://api.vibebrowser.app/v1/mcp/server/{server_id}/user-credential`
- Auth: one of:
  - API key in header `x-litellm-api-key`
  - API key in header `x-litellm-api-key`
  - API key in header `x-litellm-api-key`
  - API key in header `x-litellm-api-key`
  - API key in header `x-litellm-api-key`
  - API key in header `x-litellm-api-key`

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.dev/vibebrowser/apis/litellm-api.md) · [All operations](https://skmtc.dev/vibebrowser/apis/litellm-api/llms.txt) · [OpenAPI document](https://skmtc.dev/vibebrowser/apis/litellm-api/revisions/eea0b7e7b167?raw)
