# handler MCP server

> Converts MCP server definitions into Web-standard request handlers for hosting Model Context Protocol servers in JavaScript and TypeScript applications.

- Repository: https://github.com/vercel-labs/mcp-handler
- Page: https://hostedmcp.org/servers/vercel-labs/mcp-handler
- Official: yes
- Transport: stdio
- Stars: 702

## Install

### Claude Code

```sh
claude mcp add mcp-handler -- npx -y mcp-handler
```

### Cursor (`~/.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "mcp-handler": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-handler"
      ]
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "mcp-handler": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "mcp-handler"
      ]
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"mcp-handler","type":"stdio","command":"npx","args":["-y","mcp-handler"]}'
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "mcp-handler": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-handler"
      ]
    }
  }
}
```

### Codex

```sh
codex mcp add mcp-handler -- npx -y mcp-handler
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.mcp-handler]
command = "npx"
args = ["-y", "mcp-handler"]
```

### Gemini CLI

```sh
gemini mcp add -s user mcp-handler npx -- -y mcp-handler
```

### Gemini settings.json (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "mcp-handler": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-handler"
      ]
    }
  }
}
```

## FAQ

### Does it support the latest MCP specifications?

Yes, it natively serves the 2026-07-28 MCP specification while providing a fallback for 2025-era Streamable HTTP clients.
