# Update MCP

> Update an existing MCP server on a live LiteLLM proxy. Ask for the server_id and what to change (URL, auth, description), then call PUT /v1/mcp/server.

- Skill: `berriai/update-mcp` (Agent Skill)
- Install (CLI): `npx skillmds@latest add berriai/update-mcp`
- Raw SKILL.md: https://api.skillmd.com/api/skills/berriai/update-mcp/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- License: MIT
- Author: BerriAI (https://skillmd.com/u/berriai)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/berriai/update-mcp

---


# Update MCP Server

Update an existing MCP server registration on a live LiteLLM proxy.

## Setup

```
LITELLM_BASE_URL  — e.g. https://my-proxy.example.com
LITELLM_API_KEY   — proxy admin key
```

## Ask the user

1. **server_id** — if they don't have it, list first:
   ```bash
   curl -s "$BASE/v1/mcp/server" -H "Authorization: Bearer $KEY"
   ```
2. **What to change** — any combination of:
   - `url`
   - `credentials` (rotate the auth token)
   - `description`
   - `allowed_tools` (list of tool names to expose)

## Run

```bash
curl -s -X PUT "$BASE/v1/mcp/server" \
  -H "Authorization: Bearer $KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "server_id": "<server_id>",
    "url": "<new_url>",
    "credentials": "<new_token>"
  }'
```

Only include the fields being changed.

## Output

Confirm the server was updated and show the updated fields.

