Skip to main content
Glama
risherb

Claude MCP Server

by risherb

Claude MCP 服务器

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

项目概述

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

  1. MCP 服务器:处理工具调用和执行网络搜索的 Flask 服务器

  2. Claude Integration :连接到 Claude 的 API 并管理工具使用功能的客户端

  3. 命令行界面:与 Claude + 网络搜索功能交互的简单方法

Related MCP server: MCP Unified Server

特征

  • 🔍网络搜索集成:允许 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

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Latest Blog Posts

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