# API Keys

API keys allow you to access NBot's content programmatically. This feature is available on the **Pro** plan.

## Generating an API Key

1. Go to **Settings** from the profile menu  
2. Navigate to the **API Keys** section  
3. Click **Generate New Key**  
4. Give your key a descriptive name (e.g., "Production App", "Development")  
5. Copy the generated key immediately - it won't be shown again

## Managing API Keys

In the API Keys section of Settings, you can:

- **View** all your active API keys and their creation dates  
- **Revoke** keys that are no longer needed  
- **Generate** new keys as needed

### Best Practices

- **Never share your API key** in public repositories or client-side code  
- **Use different keys** for different applications or environments  
- **Revoke unused keys** to minimize security risk  
- **Rotate keys periodically** as a security best practice

## Using Your API Key

Include your API key in the `Authorization` header of API requests:

```
Authorization: Bearer your-api-key-here
```

## MCP Integration

NBot supports [Model Context Protocol (MCP)](https://modelcontextprotocol.io/), allowing you to connect your curators as a data source for AI assistants like Claude, Cursor, and any MCP-compatible client.

### Setup

Add this to your MCP client configuration:

```json
{
  "mcpServers": {
    "nbot": {
      "url": "https://mcp.nbot.ai/mcp",
      "headers": {
        "Authorization": "Bearer your-api-key-here"
      }
    }
  }
}
```

### Available Tools

NBot MCP Server provides 14 tools across three categories:

- **Curator Management** — list, create, update, delete curators; view sources and memory  
- **Content** — get reposts, digests, and highlights from your curators  
- **Task Monitoring** — list tasks, view task details and execution logs
