Claude MCP Server

by risherb

Integrations

  • Uses DuckDuckGo's search API to provide ethical, tracking-free web search results that Claude can incorporate into responses

Claude MCP 服务器

一个轻量级的桥接器,使 Claude AI 能够实时搜索网络。这款基于 Flask 的服务器将 Claude 的高级功能与 DuckDuckGo 搜索功能集成,使 AI 能够在对话过程中访问当前信息。

项目概述

该项目实现了一个服务器,使 Claude 能够在对话过程中执行网页搜索。它包含以下内容:

  1. MCP 服务器:处理工具调用和执行网络搜索的 Flask 服务器
  2. Claude Integration :连接到 Claude 的 API 并管理工具使用功能的客户端
  3. 命令行界面:与 Claude + 网络搜索功能交互的简单方法

特征

  • 🔍网络搜索集成:允许 Claude 在网络上搜索信息
  • 🤖 Claude 3 API 支持:兼容 Claude 的最新模型和工具使用功能
  • 🌐 DuckDuckGo 搜索:使用 DuckDuckGo 获得合乎道德、无追踪的搜索结果
  • 快速响应:简化的架构,可快速检索信息
  • 💬自然对话:Claude 可以将网络搜索结果无缝地融入到对话中

设置说明

先决条件

  • 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.

基于 Flask 的轻量级服务器,使 Claude AI 能够在对话期间通过 DuckDuckGo 执行实时网络搜索,从而允许 AI 访问当前信息。

  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
                  51
                  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

                ID: ojgpb1xe7y