# Connect the official Kling AI MCP plugin

Use Kling AI's hosted MCP service for image and video creation workflows in MCP-compatible assistants.

## Select the correct region

Ask which Kling account the user intends to use. The two regions are separate and do not share accounts, credits, tasks, or endpoints.

- Global account (`kling.ai`): endpoint `https://kling.ai/mcp/plugin`; official plugin repository: https://github.com/klingai-tech/claude-plugin
- China account (`klingai.com`): endpoint `https://klingai.com/mcp/plugin`; official plugin repository: https://github.com/klingai-tech/claude-plugin-cn

Both endpoints use remote Streamable HTTP and OAuth. Do not request or store passwords, cookies, API keys, or copied tokens; let the user's MCP client open Kling's OAuth sign-in.

## Connect from an MCP client

For Claude Code, add the endpoint matching the user's account:

```sh
claude mcp add --transport http kling-ai-global https://kling.ai/mcp/plugin
```

For a China account, replace the name and URL:

```sh
claude mcp add --transport http kling-ai-china https://klingai.com/mcp/plugin
```

For Cursor, add the matching URL under `mcpServers` in `~/.cursor/mcp.json` or the project's `.cursor/mcp.json`:

```json
{
  "mcpServers": {
    "kling-ai-global": {
      "url": "https://kling.ai/mcp/plugin"
    }
  }
}
```

For Codex CLI, use `codex mcp add kling-ai-global --url https://kling.ai/mcp/plugin`; use the China endpoint and a `kling-ai-china` name for a China account. Other MCP clients should be configured with the corresponding Streamable HTTP URL and OAuth authentication.

After connecting, complete OAuth in the browser and inspect the client's available tools. Generation consumes credits from the connected Kling account in that region. Available models and operations may depend on account access.

Official setup guide: https://kling.ai/app/mcp/guide

The official Kling CLI/npm packages are separate from this hosted MCP connection: https://www.npmjs.com/org/klingai
