About OpenRouter Web Search MCP Server
OpenRouter Web Search MCP Server provides a `search_web` tool that uses OpenRouter online models to produce concise, current answers. It is for MCP clients that need web-search results as plain text.
Key features
- 01Expose a `search_web` tool
- 02Search with OpenRouter online models
- 03Return concise, fact-based answers
- 04Select a model with `MODEL_NAME`
Use cases
- 01Retrieve current answers to web queries
- 02Provide search results to an MCP client as plain text
MCP support
The MCP server exposes `search_web` over stdio. MCP clients can submit a query and receive the generated answer as plain text.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMEOpenRouter Web Search MCP Server
This project implements an MCP (Model Context Protocol) server that provides a search_web tool. The tool performs a web search using OpenRouter's online models to generate concise, up-to-date answers.
Features
- Exposes an MCP-compatible server over stdio
- Provides a
search_webtool that:- Accepts a search query string
- Uses OpenRouter's online models to generate a fact-based answer
- Returns the answer as plain text
Requirements
- Go 1.18+
- An OpenRouter API key
Environment Variables
| Variable | Description | Required | Default |
|---|---|---|---|
OPENROUTER_API_KEY | Your OpenRouter API key | Yes | |
MODEL_NAME | OpenRouter model name (should support :online suffix) | No | google/gemini-2.5-pro-exp-03-25:free:online |
Installation
To install the MCP server, you can use the following command:
go install github.com/ChristianSch/openrouter-websearch-mcp
Usage
Run the server:
{
"mcpServers": {
"web-search": {
"command": "openrouter-websearch-mcp",
"env": {
"OPENROUTER_API_KEY": "sk-or-v1-..."
}
}
}
}
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.