Claude MCP Server
A lightweight bridge enabling Claude AI to search the web in real-time. This Flask-based server integrates Claudeβs advanced capabilities with DuckDuckGo search, allowing the AI to access current information during conversations.
Project Overview
This project implements a server that enables Claude to perform web searches during conversations. It consists of:
- MCP Server: A Flask server that handles tool calls and performs web searches
- Claude Integration: A client that connects to Claudeβs API and manages tool use capabilities
- Command-line Interface: A simple way to interact with Claude + web search capabilities
Features
- π Web Search Integration: Allows Claude to search for information on the web
- π€ Claude 3 API Support: Works with Claudeβs latest models and tool use features
- π DuckDuckGo Search: Uses DuckDuckGo for ethical, tracking-free search results
- β‘ Fast Responses: Streamlined architecture for quick information retrieval
- π¬ Natural Conversation: Claude can seamlessly incorporate web search results into conversations
Setup Instructions
Prerequisites
- Python 3.9 or higher
- Claude API key
Installation
- Clone this repository
- Install dependencies:
pip install -r requirements.txt - Set your Claude API key:
# On Windows $env:CLAUDE_API_KEY = "your-api-key" # On Linux/Mac export CLAUDE_API_KEY="your-api-key"
Running the Server
Start the MCP server:
python mcp_server.pyThe server will run on port 5001 by default.
Interact with Claude:
python ask_claude.py "your question here"
Architecture
βββββββββββββββ βββββββββββββββββ βββββββββββββββββ
β User Query ββββββΆβ Claude Client ββββββΆβ Claude API β
βββββββββββββββ βββββββββ¬ββββββββ βββββββββ¬ββββββββ
β β
β β
β βΌ
β βββββββββββββββββ
β β Tool Call β
β βββββββββ¬ββββββββ
β β
βΌ β
βββββββββββββββββ β
β MCP Server ββββββββββββββ
βββββββββ¬ββββββββ
β
βΌ
βββββββββββββββββ
β Web Search β
βββββββββββββββββ
API Endpoints
GET /health: Health check endpointGET /: Server info and available endpointsPOST /tool_call: Process tool calls from Claude
Usage Examples
Ask Claude about current events:
python ask_claude.py "What happened in the world today?"
Ask about technical topics:
python ask_claude.py "Explain the latest advancements in quantum computing"
License
MIT
Acknowledgements
- Anthropic for Claude AI
- DuckDuckGo for search API
Claude MCP Server
Project Details
- risherb/Claude_MCP_Server
- MIT License
- Last Updated: 4/11/2025
Recomended MCP Servers
An MCP server that provides KOSPI/KOSDAQ stock data using FastMCP
MCP server to provide Figma layout information to AI coding agents like Cursor
A Model-Controller-Provider (MCP) server implementation for n8n workflow automation
Interact with lightning addresses and use other common lightning tools with your LLM
MCP Server for Facebook ADs Library - Get instant answers from FB's ad library
Obsidian vault connector for Claude Desktop - enables reading and writing Markdown notes using Model Context Protocol (MCP)
π Enable AI assistants to search and access medRxiv papers through a simple MCP interface.
π§ π΄πππππ-π·πππ is a lightweight, local RAG memory store for MCP agents. Easily record, retrieve, update, delete, and...
This project provides an MCP (Multi-Channel Pipeline) server that acts as a wrapper for the MLB Stats API....





