> For the complete documentation index, see [llms.txt](https://docs.manyfast.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.manyfast.io/en/use/mcp-api.md).

# MCP Connection (API)

### What can you do with MCP?

When you enable the MCP server, AI code Agents (Cursor, Claude Code, etc.) can directly access your Manyfast planning files to learn from their contents and generate code based on the planned structure.\
This lets you move from planning to development quickly and consistently.

**1. Auto-generate code from planning documents**

* Pass the Specifications defined in Manyfast through MCP to code Agents like Cursor or Claude Code to generate code that follows your plan and drive development forward.

**2. Provide learning context to Agents**

* Provide consistent context to AI development Agents through Manyfast's planning structure and naming conventions.

**3. Real-time sync between planning and development**

* The MCP server updates changes from Manyfast in real time, keeping the connected planning information up to date. (\*Currently, the integration is read-only for Manyfast documents; direct editing is not supported.)

## How to Connect

### 1. Issue an API Key

{% stepper %}
{% step %}
From the Project list screen, go to the \[Group/Billing] page.

<figure><img src="/files/jAQ6Ss0snIcODJ0LMDv3" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Click the **Create API Key** button and specify an API name to generate an API key.

<figure><img src="/files/Mn6pTrIIohoNI0QDdsHH" alt=""><figcaption></figcaption></figure>

* Manyfast API keys follow the format `mf_sk_......`.
* Please note that an issued API key is shown only once at the time of creation.
* The issued key is used as an authentication credential when connecting external Agents, so keep it in a safe place.
  {% endstep %}
  {% endstepper %}

### 2. Connect to AI Agents

Manyfast MCP can be used in Cursor and Claude Code.\
Refer to the setup instructions for each environment below.

{% tabs %}
{% tab title="Cursor" %}
**Connecting to Cursor**

* Go to Cursor's Settings > Integrations > "Custom MCP Server".

```json
{
  "mcpServers": {
    "manyfast": {
      "url": "https://api.manyfast.io/mcp",
      "headers": {
        "Authorization": "Bearer <<API_KEY>>"
      }
    }
  }
}
```

* Enter the following information.
  * **`<<API_KEY>>`**: Replace with the personal key issued from Manyfast.

**Verifying the Connection**

* You'll see manyfast listed under Installed MCP Servers.

<figure><img src="/files/VDjmn7CXfJ8TR7eEL48s" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="Claude Code" %}
**Connecting to Claude Code**

* Run the following command in your terminal.

```bash
claude mcp add --transport http manyfast https://api.manyfast.io/mcp --header "Authorization: Bearer <<API_KEY>>"
```

* Replace **API\_KEY** with the personal key issued from Manyfast.

**Verifying the Connection**

* Run `claude` in your terminal to launch Claude Code.
* Run the `/mcp` command.

<figure><img src="/files/VDjmn7CXfJ8TR7eEL48s" alt=""><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.manyfast.io/en/use/mcp-api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
