# Captapi MCP server

> Allows AI clients to access public social media data including profiles, posts, comments, and ad libraries across over 30 platforms.

- Repository: https://github.com/CDCStream/captapi-mcp
- Page: https://hostedmcp.org/servers/cdcstream/captapi-mcp
- Transport: stdio, remote
- Stars: 0
- License: MIT
- Latest version: 0.6.0

## Install

### Claude Code

```sh
claude mcp add --env 'CAPTAPI_API_KEY=<YOUR_CAPTAPI_API_KEY>' captapi-mcp -- npx -y @captapi/mcp
```

### Cursor (`~/.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "captapi-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@captapi/mcp"
      ],
      "env": {
        "CAPTAPI_API_KEY": "<YOUR_CAPTAPI_API_KEY>"
      }
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "captapi-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@captapi/mcp"
      ],
      "env": {
        "CAPTAPI_API_KEY": "<YOUR_CAPTAPI_API_KEY>"
      }
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"captapi-mcp","type":"stdio","command":"npx","args":["-y","@captapi/mcp"],"env":{"CAPTAPI_API_KEY":"<YOUR_CAPTAPI_API_KEY>"}}'
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "captapi-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@captapi/mcp"
      ],
      "env": {
        "CAPTAPI_API_KEY": "<YOUR_CAPTAPI_API_KEY>"
      }
    }
  }
}
```

### Codex

```sh
codex mcp add captapi-mcp --env 'CAPTAPI_API_KEY=<YOUR_CAPTAPI_API_KEY>' -- npx -y @captapi/mcp
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.captapi-mcp]
command = "npx"
args = ["-y", "@captapi/mcp"]

[mcp_servers.captapi-mcp.env]
CAPTAPI_API_KEY = "<YOUR_CAPTAPI_API_KEY>"
```

### Gemini CLI

```sh
gemini mcp add -s user -e 'CAPTAPI_API_KEY=<YOUR_CAPTAPI_API_KEY>' captapi-mcp npx -- -y @captapi/mcp
```

### Gemini settings.json (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "captapi-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@captapi/mcp"
      ],
      "env": {
        "CAPTAPI_API_KEY": "<YOUR_CAPTAPI_API_KEY>"
      }
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `CAPTAPI_API_KEY` | yes | yes | Your capt_live_... API key. Create one at https://captapi.com/dashboard/api-keys (100 free credits). |
| `CAPTAPI_BASE_URL` | no | no | Override the Captapi API base URL (default https://api.captapi.com). |
| `CAPTAPI_PLATFORMS` | no | no | Comma-separated platform ids to load, e.g. instagram,tiktok (default: all platforms). |

## FAQ

### Does the server provide access to private information?

No, the server only provides access to public data that does not require a login, such as LinkedIn pages visible without signing in.

### How much does it cost to try the service?

New accounts receive 100 free credits after verifying their email, and no credit card is required to sign up.

### Are failed tool calls charged?

No, you are not charged for tool calls that fail.
