Claude Desktop API Integration via MCP

by ptitiwat2543

334 downloads Not rated yet

About

# Claude Desktop API Integration via MCP This project develops a Machine Communication Protocol (MCP) Server to enable seamless integration between Claude Desktop and Claude API, allowing users to access advanced features such as system prompts and conversation management. ## Credits This project is based on…

Explore

- Direct connection to Claude API through MCP
- Conversation history tracking and management
- System prompt support
- Seamless switching between Professional Plan and API usage
- Easy configuration with Claude Desktop
- Support for latest Claude models (Claude 3 Opus, Sonnet, Haiku)
- Support for Claude 3.5 Sonnet
- FastAPI service for external access

pip install -r requirements.txt

cp .env.example .env

- Just chat with Claude normally
- Uses your Professional plan
- No special commands needed


@claude-api Please answer using API: What is the capital of France?
``

- Check @claude-api` syntax is correct
- Check conversation IDs
- Check system prompt format

This system includes 5 tools for working with the Claude API that you can invoke via Claude Desktop chat with the @claude-api command followed by the tool name and required parameters:

return result
except Exception as e:
return f"Error: {str(e)}"
```

This project develops a Machine Communication Protocol (MCP) Server to enable seamless integration between Claude Desktop and Claude API, allowing users to access advanced features such as system prompts and conversation management.

Credits

This project is based on Claude_Desktop_API_USE_VIA_MCP by mlobo2012. Special thanks to the original author for developing this integration approach.

Key Features

- Direct connection to Claude API through MCP
- Conversation history tracking and management
- System prompt support
- Seamless switching between Professional Plan and API usage
- Easy configuration with Claude Desktop
- Support for latest Claude models (Claude 3 Opus, Sonnet, Haiku)
- Support for Claude 3.5 Sonnet
- FastAPI service for external access

When to Use

Professional Plan (Default)

- Regular conversations in Claude Desktop - Basic usage within plan limitations - No special configuration required

API Token (Through this MCP server)

- When you need a longer context window - When you want to use system prompts - When you need to bypass rate limits - When you need advanced conversation management

Installation Steps

1. Clone the Repository

```bash

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.