The Claude Web Search MCP Server enables LLMs to perform web searches through the Claude API, providing access to real-time information from the internet.
Key capabilities:
- Perform web searches with specific queries to retrieve up-to-date information
- Verify current facts that may not be available in training data
- Customize search parameters:
- Set maximum number of results returned (default: 5)
- Filter results using
allowedDomains
andblockedDomains
- Integration with Claude Desktop app for automatic management
- Option to run manually for testing or development purposes
Claude Web Search MCP Server
This MCP (Model Context Protocol) server provides web search capabilities using the Claude API. It allows LLMs to access up-to-date information from the web through a standardized interface.
Features
- Web search tool using Claude's web search API
- Support for domain filtering (allowed and blocked domains)
- Configurable maximum results per search
- Automatic configuration from Claude Desktop config file
Prerequisites
- Node.js 18 or higher
- An Anthropic API key with web search enabled
- Claude Desktop app for testing
Installation & Setup
- Clone the repository:
- Install dependencies:
- Build the server:This compiles the TypeScript code and makes the server executable.
- Link the server for global access:This makes the
mcp-server-claude-search
command available system-wide, allowing the Claude Desktop app to find it.
Running the Server with Claude Desktop App
Once the server is installed and linked, the Claude Desktop app can manage it automatically if configured correctly.
- Configure Claude Desktop App:
Open your Claude Desktop app's MCP server configuration file (usually
claude_desktop_config.json
). Add or update the entry for this server:Replace"YOUR_ANTHROPIC_API_KEY_HERE"
with your actual Anthropic API key. The server will also attempt to read this key from~/code/claude-search-mcp/claude_desktop_config.json
if theenv
variable is not set here, but it's good practice to define it per-server in the main config. - Launch Claude Desktop App:
Start (or restart) your Claude Desktop application. It should now be able to find and launch the
mcp-server-claude-search
when needed. - Use Web Search: You can now use web search capabilities in your conversations with Claude.
Manual Server Execution (for testing/development)
If you want to run the server manually for testing or development purposes (outside of the Claude Desktop app management):
- Using the globally linked command:
- Directly with tsx (for development with auto-restart):
- Running the compiled code directly:
Web Search Tool Parameters
The web search tool supports the following parameters when called by an LLM:
query
(required): The search query string.maxResults
(optional): Maximum number of search results to return (default: 5).allowedDomains
(optional): Array of domains to include in search results (e.g.,["example.com", "wikipedia.org"]
).blockedDomains
(optional): Array of domains to exclude from search results.
License
MIT
You must be authenticated.
Tools
Provides web search capabilities to Claude AI using the Anthropic API, allowing LLMs to access up-to-date information from the web with customizable domain filtering.
Related MCP Servers
- AsecurityAlicenseAqualityIntegrates Tavily's search API with LLMs to provide advanced web search capabilities, including intelligent result summaries, domain filtering for quality control, and configurable search parameters.Last updated -3649JavaScriptMIT License
- AsecurityAlicenseAqualityEnables efficient web search integration with Jina.ai's Search API, offering clean, LLM-optimized content retrieval with support for various content types and configurable caching.Last updated -1223JavaScriptMIT License
- -securityFlicense-qualityEnables LLMs to perform sophisticated web searches through proxy servers using Tavily's API, supporting comprehensive web searches, direct question answering, and recent news article retrieval with AI-extracted content.Last updated -1Python
- -securityAlicense-qualityProvides AI-powered web search capabilities using Tavily's search API, enabling LLMs to perform sophisticated web searches, get direct answers to questions, and search recent news articles.Last updated -53PythonMIT License