A TypeScript streamable HTTP and SSE proxy for MCP servers that use stdio transport.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add proxy -- npx mcp-proxy npx -y @anthropic/mcp-server-filesystem /path~/.codex/config.toml
[mcp_servers.proxy]
command = "npx"
args = ["mcp-proxy", "npx", "-y", "@anthropic/mcp-server-filesystem", "/path"]
# codex mcp add proxy -- npx mcp-proxy npx -y @anthropic/mcp-server-filesystem /path~/.cursor/mcp.json
{
"mcpServers": {
"proxy": {
"command": "npx",
"args": [
"mcp-proxy",
"npx",
"-y",
"@anthropic/mcp-server-filesystem",
"/path"
]
}
}
}.vscode/mcp.json
{
"servers": {
"proxy": {
"type": "stdio",
"command": "npx",
"args": [
"mcp-proxy",
"npx",
"-y",
"@anthropic/mcp-server-filesystem",
"/path"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"proxy": {
"command": "npx",
"args": [
"mcp-proxy",
"npx",
"-y",
"@anthropic/mcp-server-filesystem",
"/path"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"proxy": {
"command": "npx",
"args": [
"mcp-proxy",
"npx",
"-y",
"@anthropic/mcp-server-filesystem",
"/path"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"proxy": {
"command": "npx",
"args": [
"mcp-proxy",
"npx",
"-y",
"@anthropic/mcp-server-filesystem",
"/path"
]
}
}
}