I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

Claude_Desktop_API_USE_VIA_MCP
MCP server implementation for using Claude API with Claude Desktop, providing advanced API integration and conversation management.
3 years
Works with Finder
1
Github Watches
3
Github Forks
6
Github Stars
Claude Desktop API Integration via MCP
This project provides an MCP server implementation that enables seamless integration between Claude Desktop and the Claude API. It allows you to bypass Professional Plan limitations and access advanced features like custom system prompts and conversation management.
Features
- 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
When to Use
-
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
Setup Instructions
-
Clone the Repository
# Using VS Code: # 1. Press Cmd + Shift + P # 2. Type "Git: Clone" # 3. Paste: https://github.com/mlobo2012/Claude_Desktop_API_USE_VIA_MCP.git # Or using terminal: git clone https://github.com/mlobo2012/Claude_Desktop_API_USE_VIA_MCP.git cd Claude_Desktop_API_USE_VIA_MCP
-
Install Dependencies
pip install -r requirements.txt
-
Configure Environment
# Copy environment template cp .env.example .env # Edit .env and add your API key ANTHROPIC_API_KEY=your_api_key_here
-
Configure Claude Desktop
- macOS: Navigate to
~/Library/Application Support/Claude/
# Using Finder: # 1. Press Cmd + Shift + G # 2. Enter: ~/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
- macOS: Navigate to
Usage Guide
Basic Usage
-
Regular Claude Desktop Usage
- Just chat normally with Claude
- Uses your Professional Plan
- No special commands needed
-
API Usage
@claude-api Please answer using the API: What is the capital of France?
Advanced Features
-
Using System Prompts
@claude-api {"system_prompt": "You are an expert fitness coach"} Create a workout plan
-
Managing Conversations
# Start a new conversation @claude-api {"conversation_id": "project1"} Let's discuss Python # Continue same conversation @claude-api {"conversation_id": "project1"} Tell me more # View conversation history @claude-api get_conversation_history project1 # Clear conversation @claude-api clear_conversation project1
Cost Management
- 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
MCP Tools Available
-
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
Development
The main server implementation is in src/claude_api_server.py
. To extend functionality, you can add new tools using the @mcp.tool()
decorator.
Example of adding a new tool:
@mcp.tool()
async def custom_tool(param: str) -> str:
"""
Custom tool description
Args:
param: Parameter description
"""
try:
# Tool implementation
return result
except Exception as e:
return f"Error: {str(e)}"
Troubleshooting
-
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
Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Submit a pull request
License
MIT
Support
For issues and questions:
- Open an issue in the repository
- Check existing discussions
- Review the troubleshooting guide
相关推荐
Confidential guide on numerology and astrology, based of GG33 Public information
Converts Figma frames into front-end code for various mobile frameworks.
Advanced software engineer GPT that excels through nailing the basics.
Oede knorrepot die vasthoudt an de goeie ouwe tied van 't boerenleven
Micropython I2C-based manipulation of the MCP series GPIO expander, derived from Adafruit_MCP230xx
A unified API gateway for integrating multiple etherscan-like blockchain explorer APIs with Model Context Protocol (MCP) support for AI assistants.
Mirror ofhttps://github.com/suhail-ak-s/mcp-typesense-server
本项目是一个钉钉MCP(Message Connector Protocol)服务,提供了与钉钉企业应用交互的API接口。项目基于Go语言开发,支持员工信息查询和消息发送等功能。
Discover the most comprehensive and up-to-date collection of MCP servers in the market. This repository serves as a centralized hub, offering an extensive catalog of open-source and proprietary MCP servers, complete with features, documentation links, and contributors.
Reviews

user_Gcf1BMMG
Claude_Desktop_API_USE_VIA_MCP is an impressive tool for integrating Claude's capabilities into desktop applications. Created by mlobo2012, this API offers seamless connectivity and easy-to-follow documentation. As an MCP application enthusiast, I appreciate how this product enhances user experience and simplifies complex tasks. Highly recommended for anyone in need of efficient desktop automation.