Cover image
Try Now
2025-04-07

Servidor MCP para la funcionalidad de búsqueda de OpenRouter

3 years

Works with Finder

1

Github Watches

2

Github Forks

4

Github Stars

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

  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/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 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-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.

相关推荐

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

  • https://zenepic.net
  • Embark on a thrilling diplomatic quest across a galaxy on the brink of war. Navigate complex politics and alien cultures to forge peace and avert catastrophe in this immersive interstellar adventure.

  • 林乔安妮
  • A fashion stylist GPT offering outfit suggestions for various scenarios.

  • apappascs
  • Descubra la colección más completa y actualizada de servidores MCP en el mercado. Este repositorio sirve como un centro centralizado, que ofrece un extenso catálogo de servidores MCP de código abierto y propietarios, completos con características, enlaces de documentación y colaboradores.

  • ShrimpingIt
  • Manipulación basada en Micrypthon I2C del expansor GPIO de la serie MCP, derivada de AdaFruit_MCP230xx

  • pontusab
  • La comunidad de cursor y windsurf, encontrar reglas y MCP

  • av
  • Ejecute sin esfuerzo LLM Backends, API, frontends y servicios con un solo comando.

  • 1Panel-dev
  • 🔥 1Panel proporciona una interfaz web intuitiva y un servidor MCP para administrar sitios web, archivos, contenedores, bases de datos y LLM en un servidor de Linux.

  • ravitemer
  • Un poderoso complemento Neovim para administrar servidores MCP (protocolo de contexto del modelo)

  • jae-jae
  • Servidor MCP para obtener contenido de la página web con el navegador sin cabeza de dramaturgo.

  • Mintplex-Labs
  • La aplicación AI de escritorio todo en uno y Docker con trapo incorporado, agentes de IA, creador de agentes sin código, compatibilidad de MCP y más.

  • patruff
  • Puente entre los servidores Ollama y MCP, lo que permite a LLM locales utilizar herramientas de protocolo de contexto del modelo

  • GeyserMC
  • Una biblioteca para la comunicación con un cliente/servidor de Minecraft.

    Reviews

    2 (1)
    Avatar
    user_ABMgBZTX
    2025-04-17

    I've been using the openrouter-search-server by joaomj, and it's an outstanding tool! The seamless integration and efficient search functionalities have significantly optimized our server management. The repository on GitHub is well-documented, making implementation straightforward. Kudos to joaomj for this excellent creation!