Skip to main content
Glama

Claude MCP Server

by risherb

クロードMCPサーバー

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

プロジェクト概要

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

  1. MCP サーバー: ツール呼び出しを処理し、Web 検索を実行する Flask サーバー
  2. Claude統合: ClaudeのAPIに接続し、ツールの使用機能を管理するクライアント
  3. コマンドラインインターフェース: Claude + Web検索機能と対話する簡単な方法

特徴

  • 🔍 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"

ライセンス

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

謝辞

-
security - not tested
A
license - permissive license
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Claude AI が会話中に DuckDuckGo を介してリアルタイムの Web 検索を実行し、AI が現在の情報にアクセスできるようにする軽量の Flask ベースのサーバー。

  1. プロジェクト概要
    1. 特徴
      1. セットアップ手順
        1. 前提条件
        2. インストール
        3. サーバーの実行
      2. 建築
        1. APIエンドポイント
          1. 使用例
            1. ライセンス
              1. 謝辞

                Related MCP Servers

                • -
                  security
                  A
                  license
                  -
                  quality
                  This MCP server utilizes DuckDuckGo for web searches, providing structured search results with metadata and features like smart content classification and language detection, facilitating easy integration with AI clients supporting the MCP protocol.
                  Last updated -
                  1
                  25
                  1
                  JavaScript
                  MIT License
                • A
                  security
                  A
                  license
                  A
                  quality
                  An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
                  Last updated -
                  1
                  93
                  Python
                  MIT License
                  • Apple
                  • Linux
                • -
                  security
                  F
                  license
                  -
                  quality
                  A server that provides DuckDuckGo search capabilities (text, image, news, video search and AI chat) through the Model Context Protocol.
                  Last updated -
                  Python
                  • Apple
                • -
                  security
                  A
                  license
                  -
                  quality
                  A server that enables AI assistants like Claude to safely run Python code and access websites, processing data for better AI understanding while providing helpful error messages.
                  Last updated -
                  2
                  Python
                  GPL 3.0
                  • Linux
                  • Apple

                View all related MCP servers

                MCP directory API

                We provide all the information about MCP servers via our MCP API.

                curl -X GET 'https://glama.ai/api/mcp/v1/servers/risherb/Claude_MCP_Server'

                If you have feedback or need assistance with the MCP directory API, please join our Discord server