How to Use Kimi K2 in Cursor

Learn how to use Kimi K2 in Cursor, why developers are demanding this integration, and how Apidog MCP Server lets you connect, document, and automate your API workflows with Kimi K2.

Oliver Kingsley

Oliver Kingsley

15 July 2025

How to Use Kimi K2 in Cursor

In the rapidly evolving world of AI-powered development, Cursor has become a favorite IDE for many engineers. But as the AI landscape shifts, so do developer expectations. The community is buzzing with requests for Kimi K2—Moonshot AI’s open agentic intelligence model—to be natively supported in Cursor. Why? Because Kimi K2 is a game-changer for coding, reasoning, and tool use, and its cost-effectiveness is hard to beat.

This article delves into why developers are demanding Kimi K2 in Cursor, how you can use it today (even without native support), and how Apidog MCP Server can take your workflow to the next level.

Pro Tip:
Want to connect your API specifications directly to Kimi K2 and other AI models in Cursor? Apidog MCP Server lets you use your API specs as a data source for AI-powered IDEs. Instantly generate, search, and update code based on your API specifications—no more manual syncing or context loss. Get started with Apidog MCP Server and experience seamless AI-API integration.
button

Kimi K2: Open Agentic Intelligence for Developers

Kimi K2 is not just another large language model. It’s designed for agentic tasks—meaning it doesn’t just answer questions, it acts. With 32 billion activated parameters (out of 1 trillion total), Kimi K2 achieves state-of-the-art performance in coding, math, and tool use.

Key Features:

Use Cases:

Benchmarks:
Kimi K2 matches or outperforms leading open-source and proprietary models across a range of tasks, including LiveCodeBench, SWE-bench, and more.


Why Developers Want Kimi K2 in Cursor

The demand for Kimi K2 in Cursor is loud and clear across the community:

Why the excitement?

What’s missing?
Despite its power, Kimi K2 is not yet a built-in model in Cursor. But the community’s demand is pushing for change — and in the meantime, there are workarounds.


How to Use Kimi K2 in Cursor (Step-by-Step Guide)

While Cursor doesn’t natively support Kimi K2 yet, you can use it today via OpenRouter. Here’s how:

1. Create an OpenRouter Account

Openrouter supports Kimi K2

2. Add Credits

buy credit in Openrouter

3. Generate an API Key

create an Openroouter API key

4. Configure Cursor

In Cursor, navigate to settings > Models.

Replace the model URL with https://openrouter.ai/api/v1 and paste your API key.

Screenshot 20250713 at 123453 PM

5. Add Kimi K2 as a Custom Model

Click on Add Custom Model and enter moonshotai/kimi-k2.

image

6. Start Using Kimi K2 in Cursor

You can now use Kimi K2 for coding, reasoning, and more—right inside Cursor.

image

Note:
Agent mode may not work as usual, as this is not a native Cursor integration. But for most tasks, Kimi K2 delivers outstanding results.


Supercharge Your Workflow: Connect Kimi K2 to Your API specifications with Apidog MCP Server

While using Kimi K2 in Cursor is powerful, you can unlock even more value by connecting your API specifications directly to your AI tools with Apidog MCP Server.

What is Apidog MCP Server?

Apidog MCP Server lets you use your API specification as a data source for AI-powered IDEs like Cursor. This means you can:

How to Set Up Apidog MCP Server with Cursor

Prerequisites:

Before you begin, ensure the following:

✅ Node.js is installed (version 18+; latest LTS recommended)

✅ You're using an IDE that supports MCP, such as: Cursor

Step 1: Prepare Your OpenAPI File

You'll need access to your API definition:

Step 2: Add MCP Configuration to Cursor

You'll now add the configuration to Cursor's mcp.json file.

configuring MCP Server in Cursor

Remember to Replace <oas-url-or-path> with your actual OpenAPI URL or local path.

{
  "mcpServers": {
    "API specification": {
      "command": "npx",
      "args": [
        "-y",
        "apidog-mcp-server@latest",
        "--oas=https://petstore.swagger.io/v2/swagger.json"
      ]
    }
  }
}

For Windows:

{
  "mcpServers": {
    "API specification": {
      "command": "cmd",
      "args": [
        "/c",
        "npx",
        "-y",
        "apidog-mcp-server@latest",
        "--oas=https://petstore.swagger.io/v2/swagger.json"
      ]
    }
  }
}

Step 3: Verify the Connection

After saving the config, test it in the IDE by asking Kimi K2 (or any AI agent) to:

Please fetch API documentation via MCP and tell me how many endpoints exist in the project.

If it works, you’ll see a structured response that lists endpoints and their details. If it doesn’t, double-check the path to your OpenAPI file and ensure Node.js is installed properly.

Example Use Cases:

Why Apidog MCP Server?


Conclusion: The Future of AI-Driven Development Is Open, Flexible, and Automated

The demand for Kimi K2 in Cursor is a clear signal: developers want more choice, more power, and more flexibility in their AI tools. While native support is still on the horizon, you can use Kimi K2 in Cursor today with OpenRouter—and take your workflow even further by connecting your API documentation with Apidog MCP Server.

Ready to experience the next level of intelligent, automated API development?

button

Explore more

What is Opik and Why Should LLM Developers Care About This Game-Changing Platform

What is Opik and Why Should LLM Developers Care About This Game-Changing Platform

Discover what Opik is and how this open-source LLM evaluation platform helps developers build reliable AI applications. Learn about comprehensive tracing, automated evaluations, real-time monitoring, and integration with tools like Apidog for complete testing workflows.

15 July 2025

4 Methods to Use Kimi K2 for Free

4 Methods to Use Kimi K2 for Free

Discover four free methods to use Kimi K2, the open agentic intelligence model. Plus, see how Apidog MCP Server lets you connect, document, and automate your API workflows with Kimi K2.

14 July 2025

Is Kimi K2 API Pricing Really Worth the Hype for Developers in 2025

Is Kimi K2 API Pricing Really Worth the Hype for Developers in 2025

Discover Kimi K2 API pricing at $0.15 per million input tokens and $2.50 output tokens. Compare costs with competitors, learn integration strategies with Apidog, and explore the 1 trillion parameter model's capabilities for developers seeking cost-effective AI solutions in 2025.

14 July 2025

Practice API Design-first in Apidog

Discover an easier way to build and use APIs