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

# MCP

> Use NekoHub as an MCP server for agents and tools.

NekoHub exposes an HTTP MCP endpoint for compatible clients.

## Endpoint

```text theme={null}
POST /mcp
```

Full URL example:

```text theme={null}
http://your-host:5121/mcp
```

The controller currently also implements:

* `GET /mcp`
* `GET /mcp/sse`
* `POST /mcp/message?sessionId=...`

## Authentication

MCP only accepts API keys, and they must be sent as Bearer credentials:

```text theme={null}
Authorization: Bearer your-api-key
```

## Client config

```json theme={null}
{
  "mcpServers": {
    "nekohub": {
      "url": "http://localhost:5121/mcp",
      "headers": {
        "Authorization": "Bearer your-api-key"
      }
    }
  }
}
```
