Fire in da houseTop Tip:Paying $100+ per month for Perplexity, MidJourney, Runway, ChatGPT and other tools is crazy - get all your AI tools in one site starting at $15 per month with Galaxy AI Fire in da houseCheck it out free

claude-search-mcp

MCP.Pizza Chef: Doriandarko

Claude-search-mcp is an MCP server that integrates Claude's web search API to provide LLMs with real-time access to web information. It supports domain filtering, configurable search result limits, and automatic setup from Claude Desktop configurations, enabling seamless, up-to-date web search capabilities within AI workflows.

Use This MCP server To

Enable LLMs to perform real-time web searches Filter web search results by allowed or blocked domains Limit the number of search results returned per query Integrate web search into AI applications using Claude API Automatically configure search settings from Claude Desktop app

README

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

  1. Clone the repository:

    git clone https://github.com/Doriandarko/claude-search-mcp.git
    cd claude-search-mcp
  2. Install dependencies:

    npm install
  3. Build the server:

    npm run build

    This compiles the TypeScript code and makes the server executable.

  4. Link the server for global access:

    npm link

    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.

  1. 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:

    {
      "mcpServers": {
        // ... other servers ...
        "claude-search": {
          "command": "mcp-server-claude-search",
          "env": {
            "ANTHROPIC_API_KEY": "YOUR_ANTHROPIC_API_KEY_HERE"
          }
        }
        // ... other servers ...
      }
    }

    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 the env variable is not set here, but it's good practice to define it per-server in the main config.

  2. 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.

  3. 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:
    mcp-server-claude-search
  • Directly with tsx (for development with auto-restart):
    npm run dev
  • Running the compiled code directly:
    npm start

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

claude-search-mcp FAQ

How do I install the claude-search-mcp server?
Clone the repository, install dependencies with npm, build the server using npm run build, and link it globally for access.
What are the prerequisites for running claude-search-mcp?
You need Node.js 18+, an Anthropic API key with web search enabled, and the Claude Desktop app for testing.
How does domain filtering work in claude-search-mcp?
You can specify allowed and blocked domains to control which websites the server searches.
Can I configure the maximum number of search results?
Yes, the server allows setting a configurable maximum number of results per search query.
Is claude-search-mcp limited to Claude API only?
This server is designed specifically for Claude's web search API but can be integrated into MCP workflows alongside other LLM providers like OpenAI and Gemini.
How does claude-search-mcp integrate with the Claude Desktop app?
It can automatically configure itself using the Claude Desktop app's config file for seamless setup.
What Node.js version is required?
Node.js version 18 or higher is required to run claude-search-mcp.
Can claude-search-mcp be used for production environments?
Yes, with proper API keys and configuration, it can be deployed in production to provide live web search capabilities.