Skip to main content
Glama
Claude MCP Server

Claude MCP Server

by risherb

クロードMCPサーバー

Claude AIがリアルタイムでウェブ検索できるようにする軽量ブリッジ。このFlaskベースのサーバーは、Claudeの高度な機能とDuckDuckGo検索を統合し、AIが会話中に最新の情報にアクセスできるようにします。

プロジェクト概要

このプロジェクトは、クロードが会話中にウェブ検索を実行できるようにするサーバーを実装します。このサーバーは以下の要素で構成されています。

  1. MCP サーバー: ツール呼び出しを処理し、Web 検索を実行する Flask サーバー

  2. Claude統合: ClaudeのAPIに接続し、ツールの使用機能を管理するクライアント

  3. コマンドラインインターフェース: Claude + Web検索機能と対話する簡単な方法

Related MCP server: DuckDuckGo MCP Server

特徴

  • 🔍 Web検索統合:クロードがWeb上で情報を検索できるようにします

  • 🤖 Claude 3 API サポート: Claude の最新モデルとツール使用機能で動作します

  • 🌐 DuckDuckGo検索:倫理的で追跡のない検索結果のためにDuckDuckGoを使用

  • ⚡高速応答:迅速な情報検索のための合理化されたアーキテクチャ

  • 💬自然な会話:クロードはウェブ検索結果を会話にシームレスに組み込むことができます

セットアップ手順

前提条件

  • Python 3.9以上

  • クロードAPIキー

インストール

  1. このリポジトリをクローンする

  2. 依存関係をインストールします:

    pip install -r requirements.txt
  3. Claude API キーを設定します。

    # On Windows
    $env:CLAUDE_API_KEY = "your-api-key"
    
    # On Linux/Mac
    export CLAUDE_API_KEY="your-api-key"

サーバーの実行

  1. MCP サーバーを起動します。

    python mcp_server.py

    デフォルトでは、サーバーはポート 5001 で実行されます。

  2. クロードと交流する:

    python ask_claude.py "your question here"

建築

┌─────────────┐     ┌───────────────┐     ┌───────────────┐
│ User Query  │────▶│ Claude Client │────▶│ Claude API    │
└─────────────┘     └───────┬───────┘     └───────┬───────┘
                           │                     │
                           │                     │
                           │                     ▼
                           │             ┌───────────────┐
                           │             │ Tool Call     │
                           │             └───────┬───────┘
                           │                     │
                           ▼                     │
                    ┌───────────────┐            │
                    │ MCP Server    │◀───────────┘
                    └───────┬───────┘
                           │
                           ▼
                    ┌───────────────┐
                    │ Web Search    │
                    └───────────────┘

APIエンドポイント

  • GET /health : ヘルスチェックエンドポイント

  • GET / : サーバー情報と利用可能なエンドポイント

  • POST /tool_call : Claudeからのツール呼び出しを処理する

使用例

クロードに現在の出来事について聞いてみましょう:

python ask_claude.py "What happened in the world today?"

技術的なトピックについて質問する:

python ask_claude.py "Explain the latest advancements in quantum computing"

ライセンス

マサチューセッツ工科大学

謝辞

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      D
      maintenance
      A Model Context Protocol server that provides DuckDuckGo search functionality for Claude, enabling web search capabilities through a clean tool interface with rate limiting support.
      1
      1,889 npm
      87
      MIT
    • A
      license
      B
      quality
      D
      maintenance
      A server that integrates with Claude Desktop to enable real-time web research capabilities, allowing users to search Google, extract webpage content, and capture screenshots directly from conversations.
      3
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      A server that enables AI assistants like Claude to perform web searches using the Exa AI Search API, providing real-time web information in a safe and controlled way.
      2
      46,492 npm
      MIT