OpenRouter Search MCP Server
MCP server for OpenRouter search functionality
joaomj
README
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-exp-03-25:free:online
model. The:online
suffix enables the model's web search functionality. - 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
- Clone: Clone this repository to your local machine.
git clone https://github.com/joaomj/openrouter-search-server.git cd openrouter-search-server
- Install Dependencies:
npm install
- Build: Compile the TypeScript code.
npm run build
Configuration
-
API Key: Ensure you have an API key from OpenRouter.
-
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/joao/Cline/MCP/openrouter-search-server/build/index.js" ], "env": { "OPENROUTER_API_KEY": "YOUR_OPENROUTER_API_KEY_HERE" }, "disabled": false, "autoApprove": [] } // ... other servers } }
- Replace
/home/joao/Cline/MCP/openrouter-search-server/build/index.js
with the actual absolute path to the builtindex.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. - Replace
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-exp-03-25:free:online
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.
Recommended Servers
Crypto Price & Market Analysis MCP Server
A Model Context Protocol (MCP) server that provides comprehensive cryptocurrency analysis using the CoinCap API. This server offers real-time price data, market analysis, and historical trends through an easy-to-use interface.
MCP PubMed Search
Server to search PubMed (PubMed is a free, online database that allows users to search for biomedical and life sciences literature). I have created on a day MCP came out but was on vacation, I saw someone post similar server in your DB, but figured to post mine.
dbt Semantic Layer MCP Server
A server that enables querying the dbt Semantic Layer through natural language conversations with Claude Desktop and other AI assistants, allowing users to discover metrics, create queries, analyze data, and visualize results.
mixpanel
Connect to your Mixpanel data. Query events, retention, and funnel data from Mixpanel analytics.

Sequential Thinking MCP Server
This server facilitates structured problem-solving by breaking down complex issues into sequential steps, supporting revisions, and enabling multiple solution paths through full MCP integration.

Nefino MCP Server
Provides large language models with access to news and information about renewable energy projects in Germany, allowing filtering by location, topic (solar, wind, hydrogen), and date range.
Vectorize
Vectorize MCP server for advanced retrieval, Private Deep Research, Anything-to-Markdown file extraction and text chunking.
Mathematica Documentation MCP server
A server that provides access to Mathematica documentation through FastMCP, enabling users to retrieve function documentation and list package symbols from Wolfram Mathematica.
kb-mcp-server
An MCP server aimed to be portable, local, easy and convenient to support semantic/graph based retrieval of txtai "all in one" embeddings database. Any txtai embeddings db in tar.gz form can be loaded
Research MCP Server
The server functions as an MCP server to interact with Notion for retrieving and creating survey data, integrating with the Claude Desktop Client for conducting and reviewing surveys.