llm-model-providers MCP Server logo

llm-model-providers MCP Server

by jhsu

This server retrieves available models from various LLM providers. It is designed to be used with applications like Claude Desktop to provide access to a range of language models.

View on GitHub

Last updated: N/A

llm-model-providers MCP Server

Get available models from each LLM provider

Development

Install dependencies:

pnpm install

Build the server:

pnpm run build

For development with auto-rebuild:

pnpm run watch

Installation

To use with Claude Desktop, add the server config:

On MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json On Windows: %APPDATA%/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "llm-model-providers": {
      "command": "/path/to/llm-model-providers/build/index.js"
      "env": {
        "OPENAI_API_KEY": "",
        "ANTHROPIC_API_KEY": ""
      }
    }
  }
}

Debugging

Since MCP servers communicate over stdio, debugging can be challenging. We recommend using the MCP Inspector, which is available as a package script:

pnpm run inspector

The Inspector will provide a URL to access debugging tools in your browser.