Integration · MODEL CONTEXT PROTOCOL
mlobo2012 Claude Desktop API USE VIA MCP
MCP server implementation for using Claude API with Claude Desktop, providing advanced API integration and conversation management.
WHAT IT CONNECTS
mlobo2012 Claude Desktop API USE VIA MCP 为 AI Agent 提供什么
- Direct Claude API integration via MCP
- Conversation history tracking and management
- System prompt support
- Seamless switching between Professional Plan and API usage
- Easy configuration with Claude Desktop
- **Professional Plan** (default):
- Regular conversations in Claude Desktop
- Basic usage within plan limits
- No special configuration needed
- **API Token** (via this MCP server):
- When you need longer context windows
- To use custom system prompts
- To bypass rate limits
- For advanced conversation management
- **Clone the Repository**
- **Install Dependencies**
- **Configure Environment**
- **Configure Claude Desktop**
- macOS: Navigate to `~/Library/Application Support/Claude/`
- Windows: Navigate to `%APPDATA%\Claude\`
- Create or edit `claude_desktop_config.json`
- Copy contents from `config/claude_desktop_config.json`
- Update paths and API keys
- **Regular Claude Desktop Usage**
- Just chat normally with Claude
- Uses your Professional Plan
- No special commands needed
- **API Usage**
- **Using System Prompts**
- **Managing Conversations**
- API calls use your Anthropic API credits and may incur charges
- Use the Professional Plan for regular queries
- Only use @claude-api when you specifically need:
- Longer context windows
- Custom system prompts
- To bypass rate limits
- `query_claude`
- Make direct API calls to Claude
- Support for system prompts
- Conversation tracking
- `clear_conversation`
- Reset conversation history
- Manage multiple conversation threads
- `get_conversation_history`
- Retrieve conversation records
- Debug conversation flow
- **API Key Issues**
- Verify your API key in .env
- Check Claude Desktop config paths
- Ensure API key has correct permissions
- **Connection Issues**
- Check if MCP server is running
- Verify Python environment
- Check Claude Desktop logs
- **Usage Issues**
- Ensure correct @claude-api syntax
- Check conversation IDs
- Verify system prompt format
- Fork the repository
- Create a feature branch
- Make your changes
- Submit a pull request
- Open an issue in the repository
- Check existing discussions
- Review the troubleshooting guide
SECURITY
MCP 收录不等于安全审核
MCP 服务器可能获得模型上下文、凭据、本地文件或调用外部系统的权限。连接 Agent 前,请检查代码、环境变量、网络行为、软件包来源与维护状态。