Anthropic MCP Server
AIstdiov1.2.0
Official Anthropic MCP server providing direct access to Claude models through the Model Context Protocol. Enables AI agents to invoke Claude for sub-tasks like summarization, analysis, and code generation within agentic workflows. Supports streaming responses, system prompts, and multi-turn conversations.
Connect
Add this configuration to .claude/mcp.json
{
"mcpServers": {
"anthropic": {
"command": "npx",
"args": [
"-y",
"@anthropics/mcp-server"
],
"env": {
"ANTHROPIC_API_KEY": "<YOUR_ANTHROPIC_API_KEY>"
}
}
}
}Tools (2)
create_message
Send a message to Claude and receive a response. Supports system prompts, multi-turn context, and streaming.
{
"type": "object",
"required": [
"model",
"messages",
"max_tokens"
],
"properties": {
"model": {
"type": "string",
"description": "Model ID (e.g., claude-sonnet-4-5-20250514)"
},
"system": {
"type": "string",
"description": "System prompt"
},
"messages": {
"type": "array",
"items": {
"type": "object",
"properties": {
"role": {
"type": "string"
},
"content": {
"type": "string"
}
}
},
"description": "Conversation messages"
},
"max_tokens": {
"type": "integer",
"description": "Maximum tokens in response"
}
}
}count_tokens
Count the number of tokens in a message without generating a response.
{
"type": "object",
"required": [
"model",
"messages"
],
"properties": {
"model": {
"type": "string",
"description": "Model ID for tokenization"
},
"messages": {
"type": "array",
"items": {
"type": "object"
},
"description": "Messages to count tokens for"
}
}
}Resources
This server does not expose any resources.
Prompts
This server does not expose any prompts.
Server Information
- Author
- Anthropic (@anthropics)
- License
- MIT
- Version
- 1.2.0
- Stars
- 4,520
- Last Updated
- June 1, 2026