Claude MCP 服务器
一个轻量级的桥接器,使 Claude AI 能够实时搜索网络。这款基于 Flask 的服务器将 Claude 的高级功能与 DuckDuckGo 搜索功能集成,使 AI 能够在对话过程中访问当前信息。
项目概述
该项目实现了一个服务器,使 Claude 能够在对话过程中执行网页搜索。它包含以下内容:
MCP 服务器:处理工具调用和执行网络搜索的 Flask 服务器
Claude Integration :连接到 Claude 的 API 并管理工具使用功能的客户端
命令行界面:与 Claude + 网络搜索功能交互的简单方法
特征
🔍网络搜索集成:允许 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"
建筑学
API 端点
GET /health
:健康检查端点GET /
:服务器信息和可用端点POST /tool_call
:处理来自 Claude 的工具调用
使用示例
向克劳德询问时事:
询问技术话题:
执照
麻省理工学院
致谢
克劳德·人工智能的人类学
DuckDuckGo搜索 API
This server cannot be installed
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 访问当前信息。
Related MCP Servers
- AsecurityAlicenseAqualityA 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 -256MIT License
- -securityFlicense-qualityThis server integrates DeepSeek and Claude AI models to provide enhanced AI responses, featuring a RESTful API, configurable parameters, and robust error handling.
- -securityAlicense-qualityA 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 -98MIT License
- AsecurityAlicenseAqualityA 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 -315,704MIT License