npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@dav1lex/server-llm-bridge

v1.0.10

Published

MCP server for LLM-to-LLM communication via OpenRouter and Google Gemini

Downloads

26

Readme

LLM Bridge MCP Server

GitHub npm version

An MCP (Model Context Protocol) server that enables LLM-to-LLM communication through OpenRouter and Google Gemini APIs.

🚀 Features

  • Dual Provider Support: Integrates with both OpenRouter and Google Gemini.
  • Multi-Turn Conversations: Maintains context for extended dialogues.
  • Configurable Presets: Easily switch between settings optimized for general use and coding.
  • High Token Limits: Supports up to 8192 tokens for handling large codebases and complex discussions.

📦 Quick Start

How to Use

After attaching to your terminal/code editor, you can basically send a prompt like this call llm-bridge mcp server to ask another LLM about his opinion, use [modelname](optional), find the most optional solution. The LLM will decide what tool to use if not guided.

1. Configure Your MCP Client

Add the server to your MCP client's configuration. The recommended way is to use npx to run the latest version directly from npm.

Example for RovoDev / RooCode:

{
  "llm-bridge": {
    "command": "npx",
    "args": [
      "-y",
      "@dav1lex/server-llm-bridge"
    ]
  }
}

For local development:

{
  "llm-bridge": {
    "command": "node",
    "args": [
      "/path/to/your/llm-bridge/dist/index.js"
    ]
  }
}

2. Set Up API Keys (Required)

Important: You need at least one API key (OpenRouter or Gemini) for the server to be functional. The server will start without keys but all tools will return errors. You can provide API keys in several ways:

Option A: Create a .env file in your project root:

# OpenRouter Configuration
OPENROUTER_API_KEY=your_openrouter_api_key_here
OPENROUTER_HTTP_REFERER=http://localhost:3000
OPENROUTER_X_TITLE=LLM Bridge MCP

# Google Gemini Configuration
GEMINI_API_KEY=your_gemini_api_key_here

Option B: Set system environment variables:

# Windows
set OPENROUTER_API_KEY=your_openrouter_api_key_here
set GEMINI_API_KEY=your_gemini_api_key_here

# Linux/Mac
export OPENROUTER_API_KEY=your_openrouter_api_key_here
export GEMINI_API_KEY=your_gemini_api_key_here

Option C: Set in your shell profile (permanent):

Add to your .bashrc, .zshrc, or equivalent:

export OPENROUTER_API_KEY=your_openrouter_api_key_here
export GEMINI_API_KEY=your_gemini_api_key_here

🛠️ Available Tools

1. ask_openrouter_llm

Send a single prompt to an OpenRouter model.

  • prompt (required): The text to send.
  • model (optional): e.g., deepseek/deepseek-chat-v3.1:free.
  • preset (optional): Use a predefined configuration (general or coding).

2. ask_gemini_llm

Send a single prompt to a Gemini model.

  • prompt (required): The text to send.
  • model (optional): e.g., gemini-2.5-pro.
  • preset (optional): Use a predefined configuration (general or coding).

3. conversation_with_llm

Have a multi-turn conversation, maintaining context.

  • messages (required): An array of the conversation history.
  • provider (optional): openrouter or gemini.
  • model (optional): The model to use.

Example:

{
  "messages": [
    {
      "role": "user", 
      "content": "What is the capital of France?"
    },
    {
      "role": "assistant",
      "content": "The capital of France is Paris."
    },
    {
      "role": "user",
      "content": "What is a famous landmark there?"
    }
  ],
  "provider": "openrouter",
  "model": "deepseek/deepseek-chat-v3.1:free"
}

🔧 Development

If you've cloned this repository and want to run your local version:

  1. Install dependencies: npm install
  2. Build the code: npm run build
  3. Run in development mode: npm run dev (auto-rebuilds on changes)

Then, update your MCP client to run the local version with node:

{
  "llm-bridge": {
    "command": "node",
    "args": [
      "c:/Users/admin/LLM-Bridge/dist/index.js"
    ]
  }
}

📄 License

MIT License.