Claude MCP Server
Claude MCP 服务器
一个轻量级的桥接器,使 Claude AI 能够实时搜索网络。这款基于 Flask 的服务器将 Claude 的高级功能与 DuckDuckGo 搜索功能集成,使 AI 能够在对话过程中访问当前信息。
项目概述
该项目实现了一个服务器,使 Claude 能够在对话过程中执行网页搜索。它包含以下内容:
MCP 服务器:处理工具调用和执行网络搜索的 Flask 服务器
Claude Integration :连接到 Claude 的 API 并管理工具使用功能的客户端
命令行界面:与 Claude + 网络搜索功能交互的简单方法
Related MCP server: DuckDuckGo MCP Server
特征
🔍网络搜索集成:允许 Claude 在网络上搜索信息
🤖 Claude 3 API 支持:兼容 Claude 的最新模型和工具使用功能
🌐 DuckDuckGo 搜索:使用 DuckDuckGo 获得合乎道德、无追踪的搜索结果
⚡快速响应:简化的架构,可快速检索信息
💬自然对话:Claude 可以将网络搜索结果无缝地融入到对话中
设置说明
先决条件
Python 3.9 或更高版本
克劳德 API 密钥
安装
克隆此存储库
安装依赖项:
pip install -r requirements.txt设置您的 Claude API 密钥:
# On Windows $env:CLAUDE_API_KEY = "your-api-key" # On Linux/Mac export CLAUDE_API_KEY="your-api-key"
运行服务器
启动 MCP 服务器:
python mcp_server.py服务器默认在端口 5001 上运行。
与克劳德互动:
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"执照
麻省理工学院
致谢
克劳德·人工智能的人类学
DuckDuckGo搜索 API
This server cannot be deployed
Maintenance
Related MCP Connectors
LLM-ready web search + instant answers + URL-to-clean-text fetch for agents and RAG.
Provides AI assistants with access to Seltz's powerful Web Search capabilities.
Web search and page-reading for AI agents. One-click OAuth connect, or a Caesar API key.
Google, Bing, DuckDuckGo and Google Maps search results, free without an API key.
Related MCP Servers
- AlicenseBqualityFmaintenanceA server facilitating web search functionality by utilizing Perplexity AI's API, designed to integrate with the Claude desktop client for enhanced search queries.1307MIT
- AlicenseBqualityDmaintenanceA Model Context Protocol server that provides DuckDuckGo search functionality for Claude, enabling web search capabilities through a clean tool interface with rate limiting support.11,546 npm87MIT
- AlicenseBqualityDmaintenanceA 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.3999 npmMIT
- AlicenseAqualityCmaintenanceA 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.230,797 npmMIT