Claude Desktop API Integration via MCP
MCP server implementation for using Claude API with Claude Desktop, providing advanced API integration and conversation management.
Overview
Claude Desktop API Integration via MCP is a project that provides an MCP server implementation for seamless integration between Claude Desktop and the Claude API, allowing users to access advanced features and manage conversations effectively.
To use this project, clone the repository, install the dependencies, configure your environment with your API key, and set up Claude Desktop according to the provided instructions. You can then interact with Claude using either the Professional Plan or the API.
- Direct integration with Claude API via MCP - Conversation history tracking and management - Support for custom system prompts - Easy switching between Professional Plan and API usage - Simple configuration with Claude Desktop
- Bypassing Professional Plan limitations for longer context windows.
- Utilizing custom system prompts for tailored responses.
- Managing multiple conversation threads effectively.
Add to your AI client
Use these steps to connect Claude Desktop API Integration via MCP in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"claude-desktop-api-use-via-mcp-mlobo2012": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-claude-desktop-api-use-via-mcp-mlobo2012"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"claude-desktop-api-use-via-mcp-mlobo2012": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-claude-desktop-api-use-via-mcp-mlobo2012"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"claude-desktop-api-use-via-mcp-mlobo2012": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-claude-desktop-api-use-via-mcp-mlobo2012"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"claude-desktop-api-use-via-mcp-mlobo2012": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-claude-desktop-api-use-via-mcp-mlobo2012"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"claude-desktop-api-use-via-mcp-mlobo2012": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-claude-desktop-api-use-via-mcp-mlobo2012"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"claude-desktop-api-use-via-mcp-mlobo2012": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-claude-desktop-api-use-via-mcp-mlobo2012"
]
}
}
}FAQ
Can I use this project without a Professional Plan?
Yes! This project allows you to use the API directly, bypassing the limitations of the Professional Plan.
How do I manage conversation history?
You can use commands like `get_conversation_history` and `clear_conversation` to manage your conversation threads.
Is there any cost associated with using the API?
Yes, API calls may incur charges based on your Anthropic API credits.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":974,"uuid":"7eb6acb8-7bbe-4f2b-bd76-d8aa1469363f","name":"Claude_Desktop_API_USE_VIA_MCP","title":"Claude Desktop API Integration via MCP","description":"MCP server implementation for using Claude API with Claude Desktop, providing advanced API integration and conversation management.","avatar_url":"https://avatars.githubusercontent.com/u/31418626?v=4","created_at":"$D2025-01-28T02:21:33.551Z","updated_at":"$D2025-02-23T07:18:49.994Z","status":"created","author_name":"mlobo2012","author_avatar_url":"https://avatars.githubusercontent.com/u/31418626?v=4","tags":"mathgpt,math-solver,math-assistant","category":"research-and-data","is_featured":false,"sort":1,"url":"https://github.com/mlobo2012/Claude_Desktop_API_USE_VIA_MCP","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":null,"user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]