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

openrouter-search-server

MCP.Pizza Chef: joaomj

OpenRouter Search MCP Server is a lightweight MCP server that enables web search functionality by integrating with the OpenRouter API. It uses the google/gemini-2.5-pro-preview-03-25 model to perform searches and returns raw, unparsed text responses. Designed for seamless MCP client integration, it exposes a simple web_search tool to facilitate real-time web search capabilities within AI workflows.

Use This MCP server To

Perform real-time web searches within MCP-enabled AI workflows Integrate web search results as context for LLM responses Retrieve raw AI-generated text from web search queries Enable MCP clients to access external web data via OpenRouter Support multi-step reasoning with live web search inputs

README

Attention

Archived repo. For future developments see: https://github.com/joaomj/openrouter-websearch-mcp

OpenRouter Search MCP Server

This is a Model Context Protocol (MCP) server designed to provide web search capabilities by leveraging the OpenRouter API.

Features

  • Web Search via OpenRouter: Utilizes the OpenRouter API to perform web searches.
  • Specific Model: Uses the google/gemini-2.5-pro-preview-03-25 model.
  • Raw Text Output: The server returns the direct, unparsed text response generated by the AI model.
  • MCP Integration: Exposes a simple web_search tool compatible with MCP clients.

Installation

  1. Clone: Clone this repository to your local machine.
    git clone https://github.com/joaomj/openrouter-search-server.git
    cd openrouter-search-server
  2. Install Dependencies:
    npm install
  3. Build: Compile the TypeScript code.
    npm run build

Configuration

  1. API Key: Ensure you have an API key from OpenRouter.

  2. MCP Settings: Add the following configuration block to your MCP client's settings file (e.g., ~/.vscode-server/data/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json for VS Code Remote/Codespaces or ~/Library/Application Support/Claude/claude_desktop_config.json for Claude Desktop App):

    {
      "mcpServers": {
        "openrouter-search": {
          "command": "node",
          "args": [
            "/home/<user>/Cline/MCP/openrouter-search-server/build/index.js"
          ],
          "env": {
            "OPENROUTER_API_KEY": "YOUR_OPENROUTER_API_KEY_HERE"
          },
          "disabled": false,
          "autoApprove": []
        }
        // ... other servers
      }
    }
    • Replace /home/<user>/Cline/MCP/openrouter-search-server/build/index.js with the actual absolute path to the built index.js file on your system if you cloned it elsewhere.
    • Replace YOUR_OPENROUTER_API_KEY_HERE with your actual OpenRouter API key.

    Important: The server requires the OPENROUTER_API_KEY environment variable to be set. Never commit your API key directly into the code or the repository.

Usage

Once the server is configured and running (either manually via npm start in its directory or automatically via your MCP client), you can use the web_search tool.

Tool: web_search

Server Name: openrouter-search (or whatever key you used in the MCP settings)

Input:

  • query (string, required): The search query you want to perform.

Output:

  • A text string containing the raw response from the OpenRouter API's google/gemini-2.5-pro-preview-03-25 model.

Example MCP Tool Call:

<use_mcp_tool>
<server_name>openrouter-search</server_name>
<tool_name>web_search</tool_name>
<arguments>
{
  \"query\": \"What is the latest version of the MCP SDK?\"
}
</arguments>
</use_mcp_tool>

License

MIT.

openrouter-search-server FAQ

How do I install the OpenRouter Search MCP Server?
Clone the repository, install dependencies with npm, and run the build script.
What model does the server use for web search?
It uses the google/gemini-2.5-pro-preview-03-25 model via the OpenRouter API.
Does the server parse or format the search results?
No, it returns raw, unparsed text responses from the AI model.
Can this server be integrated with any MCP client?
Yes, it exposes a simple web_search tool compatible with MCP clients.
Is the OpenRouter Search MCP Server actively maintained?
The repository is archived; future developments are at https://github.com/joaomj/openrouter-websearch-mcp.
Which LLM providers are supported through this server?
It primarily uses OpenRouter's API with the Gemini model, compatible with providers like OpenAI and Anthropic indirectly.
What programming language is used for this server?
The server is implemented in TypeScript and built with Node.js.
How does this server enhance AI workflows?
It enables live web search context injection, improving model responses with up-to-date information.