> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kymaapi.com/llms.txt
> Use this file to discover all available pages before exploring further.

# MCP Server

> Access 13+ AI models from Claude Code, Cursor, or any MCP client via Kyma's MCP server.

## What is MCP?

The [Model Context Protocol](https://modelcontextprotocol.io) (MCP) lets AI assistants like Claude Code and Cursor use external tools. Kyma's MCP server exposes 13+ open-source models as tools.

## Install

```bash theme={null}
npm install -g @kyma-api/mcp-server
```

Or run directly with npx (no install needed):

```bash theme={null}
npx @kyma-api/mcp-server
```

## Claude Code

Add to `~/.claude/settings.json`:

```json theme={null}
{
  "mcpServers": {
    "kyma": {
      "command": "npx",
      "args": ["@kyma-api/mcp-server"],
      "env": {
        "KYMA_API_KEY": "ky-your-api-key"
      }
    }
  }
}
```

Restart Claude Code. You can now use `chat` and `list_models` tools.

## Cursor

Add to Cursor settings (Settings > MCP):

```json theme={null}
{
  "kyma": {
    "command": "npx",
    "args": ["@kyma-api/mcp-server"],
    "env": {
      "KYMA_API_KEY": "ky-your-api-key"
    }
  }
}
```

## Available Tools

### `chat`

Send a message to any Kyma model.

| Parameter | Type   | Required | Default       |
| --------- | ------ | -------- | ------------- |
| message   | string | Yes      | —             |
| model     | string | No       | qwen-3.6-plus |
| system    | string | No       | —             |

### `list_models`

List all available models with their IDs. No parameters.

## Example Usage

Once configured, ask your AI assistant:

* "Use kyma chat to explain quantum computing with deepseek-r1"
* "Use kyma list\_models to see available models"
* "Use kyma chat with model qwen-3-32b to review this function"

<Tip>
  Get your free API key at [kymaapi.com](https://kymaapi.com) — includes \$0.50 free credits.
</Tip>
