MC

mlobo2012/claude_desktop_api_use_via_mcp

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

34 stars 8 forks 品質 45 トレンド 12

Claude API を Claude デスクトップで使用するための MCP サーバーの実装で、高度な API の統合と会話管理を実現します.

概要

このプロジェクトは、Claude DesktopとClaude APIのシームレスな統合を可能にするMCPサーバーの実装を提供します。 プロフェッショナルプランの制限を回避し、カスタムシステムプロンプトや会話管理などの高度な機能にアクセスすることができます。 - MCPによる直接Claude APIの統合 - 会話履歴の追跡と管理 - システムプロンプトのサポート - プロフェッショナルプランとAPIの使い方のシームレスな切り替え - クラッドデスクトップで簡単な設定 - (デフォルト): - Claudeデスクトップの定期的な会話 - プラン制限内の基本的な使用 - 特別な設定は必要ありません - (このMCPサーバー経由): - 長いコンテキストウィンドウが必要な場合 - カスタムシステムプロンプトを使用する - 転送速度制限 - 高度な会話管理のため 4. - macOS: ~/Library/Application Support/Claude/ - Windows に移動します。%APPDATA%\Claude\ に移動します。 claude desktop config.json を作成または編集します。 config/claude desktop config.json からコンテンツをコピー - パスと API キーの更新 1.

概要(AI 翻訳)

このプロジェクトは、Claude DesktopとClaude APIのシームレスな統合を可能にするMCPサーバーの実装を提供します。 プロフェッショナルプランの制限を回避し、カスタムシステムプロンプトや会話管理などの高度な機能にアクセスすることができます。

##特徴

  • MCP による Claude API の直接統合
  • 会話履歴の追跡と管理
  • システム プロンプト サポート
  • プロフェッショナルプランとAPI使用のシームレスな切り替え
  • Claudeデスクトップで簡単な設定

使用するとき

-プロフェッショナルプラン(デフォルト):

  • クロードデスクトップでの定期的な会話
  • プラン制限内の基本使用量
  • 特別な構成は必要ありません

-APIトークン(このMCPサーバー経由):

  • 長いコンテキストウィンドウが必要な場合
  • カスタムシステムプロンプトを使用するため
  • バイパス率の限界への
  • 高度な会話管理のため

セットアップ手順

  1. リポジトリのクローン

2.依存関係のインストール

3.環境の設定

4。 Claudeデスクトップの設定

  • macOS: [[T0] に移動します

  • Windows:[[[T1]に移動]

  • [claude_desktop_config.jsonを作成または編集する

  • [config/claude_desktop_config.jsonから内容をコピーする

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

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

  1. 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
    
  2. Install Dependencies

    pip install -r requirements.txt
    
  3. Configure Environment

    # Copy environment template
    cp .env.example .env
    
    # Edit .env and add your API key
    ANTHROPIC_API_KEY=your_api_key_here
    
  4. 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

Usage Guide

Basic Usage

  1. Regular Claude Desktop Usage

    • Just chat normally with Claude
    • Uses your Professional Plan
    • No special commands needed
  2. API Usage

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

Advanced Features

  1. Using System Prompts

    @claude-api {"system_prompt": "You are an expert fitness coach"} Create a workout plan
    
  2. 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
GitHub で README 全文を見る

インストール

This server does not publish a one-line install command.

Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →