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

# MCP Server

> Connect AI assistants to trade through Cobot programmatically

The MCP (Model Context Protocol) server lets you connect AI assistants like Claude or ChatGPT to trade through Cobot.

## Setup

<Steps>
  <Step title="Generate API Key">
    Go to **API Keys** in the app and click **Create API Key**.
  </Step>

  <Step title="Copy your key">
    Copy the generated API key.
  </Step>

  <Step title="Configure your AI client">
    Add the MCP endpoint with your API key using Bearer authentication.
  </Step>
</Steps>

## Available Tools

### Kalshi Tools

| Tool             | Description                      |
| ---------------- | -------------------------------- |
| `markets_list`   | List Kalshi markets with filters |
| `market_get`     | Get a single market by ticker    |
| `events_list`    | List Kalshi events               |
| `orders_create`  | Place a Kalshi order             |
| `orders_list`    | List your orders                 |
| `positions_list` | View your positions              |
| `position_close` | Close a position                 |

### Polymarket Tools

| Tool                          | Description               |
| ----------------------------- | ------------------------- |
| `polymarket_markets`          | Search/browse markets     |
| `polymarket_events`           | List events               |
| `polymarket_market_orderbook` | Get orderbook for a token |

### Web3 Tools

| Tool               | Description                  |
| ------------------ | ---------------------------- |
| `balances_get`     | Get wallet balances          |
| `wallet_addresses` | List wallet addresses        |
| `trending_tokens`  | Get trending tokens          |
| `token_search`     | Search tokens by name/symbol |
| `token_info`       | Get detailed token info      |
| `swap_quote`       | Get swap/bridge quote        |
| `swap_execute`     | Execute swap/bridge          |

### Other Tools

| Tool                   | Description                |
| ---------------------- | -------------------------- |
| `pumpfun_launch_token` | Launch a token on Pump.fun |

## Authentication

All requests require Bearer token authentication:

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

The MCP server validates your API key, mints a JWT token, and proxies requests to the appropriate backend service.

<Info>
  Rate limit: 60 requests per minute per API key.
</Info>
