Anthropic API Claude Desktop Config
Add the Anthropic API MCP server to Claude Desktop with this ready-to-use configuration.
Setup Instructions
- Open Claude Desktop
- Go to Settings → Developer → Edit Config →
claude_desktop_config.json - Paste the JSON below into the file
- Set your API Key in the
envsection - Restart Claude Desktop
Configuration JSON
Copy the entire block into your claude_desktop_config.json
{
"mcpServers": {
"anthropic": {
"command": "npx",
"args": [
"-y",
"@anthropic/mcp-server"
],
"env": {
"ANTHROPIC_API_KEY": "sk-ant-..."
}
}
}
}Environment Variables
ANTHROPIC_API_KEYReplace sk-ant-... with your actual anthropic api key
Endpoints
POST
/v1/messagesCreate a message
POST
/v1/completeComplete text