Skip to content

Connecting to LLMs (Large Language Models)

To use the "Interactive Testing" feature for evaluating your MCP tools in conversations with an LLM, you’ll first need to configure an LLM in OpenMCP.

Compatibility Notice

Currently, OpenMCP only supports LLM services that are OpenAI API-compatible. To use other types of LLMs, you can use a proxy like newApi or implement your own adapter.

We support most mainstream LLMs out of the box. If you encounter issues connecting to an LLM, feel free to contact us.

To configure an LLM, go to Settings → API:

Supported Models (by default)

OpenMCP comes pre-configured with commonly used LLM services. Here is a list of supported models:

LLM NameProviderbaseUrlDefault Model
DeepSeekDeepSeekhttps://api.deepseek.com/v1deepseek-chat
OpenAIOpenAIhttps://api.openai.com/v1gpt-4-turbo
Qwen (Tongyi Qianwen)Alibabahttps://dashscope.aliyuncs.com/compatible-mode/v1qwen-plus
Doubao SeedByteDancehttps://ark.cn-beijing.volces.com/api/v3doubao-1.5-pro-32k
GeminiGooglehttps://generativelanguage.googleapis.com/v1beta/openai/gemini-2.0-flash
GrokxAIhttps://api.x.ai/v1grok-3-mini
MistralMistral AIhttps://api.mistral.ai/v1mistral-tiny
GroqGroqhttps://api.groq.com/openai/v1mixtral-8x7b-32768
PerplexityPerplexity AIhttps://api.perplexity.ai/v1pplx-7b-online
Kimi ChatMoonshot AIhttps://api.moonshot.cn/v1moonshot-v1-8k

Configuring the LLM

All you need to do is enter the corresponding apiToken for your provider. Then click the Test button. If the connection is successful, you’ll see a response like this:

Adding More Models

If the model you want to use is not in the default list, you can add it in two ways:

Method 1: Update Model List Automatically

Using Qwen as an example, after entering a valid apiToken, click Update Model List. If the provider strictly follows the OpenAI API standard, all available models will be fetched automatically.

Method 2: Manually Add Model

If your server doesn’t follow the OpenAI standard, you won’t be able to use method 1. You can instead manually add models. For example, to add a Grok model:

  1. Locate Grok under providers and click Edit:

  1. Click on the Models section, type the model name, press Enter, then click Confirm:

  1. Return to the API page and click Save.

Adding Custom Services

If the provider you want to use is not listed (e.g., a self-hosted model or a new cloud service), you can add it using the Add Service button. The process is similar to Manual Model Addition and won’t be repeated here.

Contributors

Changelog