OpenRouter Web Search MCP Server
About
An MCP server providing websearch using openrouter :online
Details
- Author
- ChristianSch
- GitHub stars
- 3
- Downloads
- 383
- Categories
- Search
Jump to
- Exposes an MCP-compatible server over stdio
- Provides a search_web tool accepting a query string
- Uses OpenRouter's online models for fact-based answers
- Returns answers as plain text
- Configurable model name via MODEL_NAME environment variable
Install the server with go install, set the required OPENROUTER_API_KEY environment variable, and configure it as an MCP server in your client settings (e.g., the mcpServers JSON block in Claude Desktop). Once running, invoke the search_web tool by passing a search query string.
OpenRouter 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_web tool 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-..."
}
}
}
}
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.

