Skip to main content
Glama

multi-model-mcp

An MCP server that provides access to other LLMs via an OpenAI-compatible API.

Setup

Environment Variables

Variable

Required

Description

API_BASE_URL

Yes

Base URL of the OpenAI-compatible API (e.g. https://api.openai.com/v1)

API_KEY

Yes

Bearer token for authentication

CONVERSATION_CACHE_PATH

No

Path to a SQLite database for persisting conversations

Usage with Claude Desktop

Add the following to your Claude Desktop configuration:

{
  "mcpServers": {
    "multi-model-mcp": {
      "command": "npx",
      "args": ["-y", "multi-model-mcp"],
      "env": {
        "API_BASE_URL": "https://api.openai.com/v1",
        "API_KEY": "your-api-key",
        "CONVERSATION_CACHE_PATH": "/path/to/conversations.db"
      }
    }
  }
}

Related MCP server: Ollama MCP Server

Tools

list_models

Lists available models from the API.

chat / start_chat + continue_chat

When CONVERSATION_CACHE_PATH is not set, a single chat tool is available for stateless one-off prompts.

When CONVERSATION_CACHE_PATH is set, two tools are available instead:

  • start_chat — Begins a new conversation with a model and returns a conversation ID.

  • continue_chat — Sends a follow-up message using an existing conversation ID. The full message history is sent to the model automatically.

list_conversations

Lists all cached conversations with their model, message count, and creation date. Only available when caching is enabled.

get_conversation_messages

Retrieves the full message history of a cached conversation. Only available when caching is enabled.

Development

npm install
npm run dev

Building

npm run build

Produces a single bundled file at dist/multi-model-mcp.js.

Available Tools

2 tools
chatB
Read-only

Send a message to an LLM via an OpenAI-compatible API

Inputs: model (required), prompt (required).

list_modelsA
Read-only

List available models from the OpenAI-compatible API

Inputs: no named parameters.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 2 tools

    Disambiguation5/5

    The two tools have clearly distinct purposes: one lists available models, the other sends a chat message. There is no realistic scenario where an agent would confuse these operations.

    Naming Consistency4/5

    Both names use lowercase snake_case, which is consistent. However, 'list_models' follows a clear verb_noun pattern while 'chat' is a bare verb/noun without an explicit object, making the set slightly less predictable.

    Tool Count3/5

    Two tools is thin for a server named 'multi-model-mcp'. While the basic list-then-chat workflow is present, a richer surface would be expected for multi-model use cases.

    Completeness2/5

    The server covers only model listing and a single chat call. There are significant gaps for a multi-model server: no model comparison or orchestration, no retrieval of model details, no conversation/history management, and no options for embeddings or completions.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • -
      license
      C
      quality
      Not graded
      maintenance
      Enables interaction with OpenAI-compatible APIs (like Ollama) through MCP tools. Provides access to chat completions, model listings, and embeddings generation from local or remote OpenAI-style endpoints.
      3
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables interaction with locally running Ollama models through chat, generation, and model management operations. Supports listing, downloading, and deleting models while maintaining conversation history for interactive sessions.
      MIT