OpenRouter Search MCP Server
by joaomj
This server provides web search capabilities by leveraging the OpenRouter API and exposes a `web_search` tool compatible with MCP clients. It utilizes the `google/gemini-2.5-pro-exp-03-25:free:online` model to perform web searches and returns the raw text response.
Last updated: N/A
What is OpenRouter Search MCP Server?
The OpenRouter Search MCP Server is a tool that allows Model Context Protocol (MCP) clients to perform web searches using the OpenRouter API. It acts as a bridge, enabling AI models to access and utilize real-time information from the web.
How to use OpenRouter Search MCP Server?
To use the server, you need to clone the repository, install dependencies, build the project, and configure your MCP client with the server's details, including the path to the built index.js
file and your OpenRouter API key. Once configured, you can call the web_search
tool with a query to get the search results.
Key features of OpenRouter Search MCP Server
Web Search via OpenRouter API
Uses the google/gemini-2.5-pro-exp-03-25:free:online model
Returns raw text output from the AI model
Integrates with MCP clients via the web_search tool
Use cases of OpenRouter Search MCP Server
Enabling AI models to answer questions requiring up-to-date information
Providing context for AI model responses based on web search results
Integrating web search functionality into MCP-based applications
Automating web research tasks using AI models
FAQ from OpenRouter Search MCP Server
What is the OpenRouter API?
What is the OpenRouter API?
OpenRouter is an API that provides access to various AI models, including those with web search capabilities.
What is MCP?
What is MCP?
MCP stands for Model Context Protocol. It's a protocol that allows different AI models and tools to communicate and work together.
How do I get an OpenRouter API key?
How do I get an OpenRouter API key?
You can obtain an API key by signing up for an account on the OpenRouter website (https://openrouter.ai/).
Why is the OPENROUTER_API_KEY environment variable important?
Why is the OPENROUTER_API_KEY environment variable important?
The server requires the API key to authenticate with the OpenRouter API. Setting it as an environment variable prevents it from being hardcoded in the code.
What kind of input does the web_search tool expect?
What kind of input does the web_search tool expect?
The web_search tool expects a string input named 'query', which represents the search query you want to perform.