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.
连接
将此配置添加到 .claude/mcp.json
{
"mcpServers": {
"anthropic": {
"command": "npx",
"args": [
"-y",
"@anthropics/mcp-server"
],
"env": {
"ANTHROPIC_API_KEY": "<YOUR_ANTHROPIC_API_KEY>"
}
}
}
}工具 (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"
}
}
}资源
此服务器未提供任何资源。
提示词
此服务器未提供任何提示词。
服务器信息
- 许可证
- MIT
- 版本
- 1.2.0
- 星标
- 4,520
- 最后更新
- 2026年6月1日