Skip to main content
Glama

Claude MCP Server

by risherb

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

                • A
                  security
                  A
                  license
                  A
                  quality
                  A server facilitating web search functionality by utilizing Perplexity AI's API, designed to integrate with the Claude desktop client for enhanced search queries.
                  Last updated -
                  251
                  MIT License
                  • Apple
                • -
                  security
                  F
                  license
                  -
                  quality
                  This server integrates DeepSeek and Claude AI models to provide enhanced AI responses, featuring a RESTful API, configurable parameters, and robust error handling.
                  Last updated -
                  13
                • -
                  security
                  A
                  license
                  -
                  quality
                  A modular server implementation for Claude AI assistants with integrated tools, enabling Claude to perform actions and access external resources like file systems, web searches, browser automation, financial data, and document generation.
                  Last updated -
                  95
                  MIT License
                  • Linux
                  • Apple
                • A
                  security
                  A
                  license
                  A
                  quality
                  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.
                  Last updated -
                  3
                  199
                  MIT License
                  • 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