# MCP server

> Connect Claude Code, Claude Desktop or Cursor to Bark: look up alerts, track and untrack, and ask why an alert didn't arrive.

Ask your AI assistant things like "track these 20 wallets as whale 1 to whale 20" or "why didn't I get this post?".

- **Address**: `https://www.bark.gg/api/mcp` (Streamable HTTP)
- **Key**: `Authorization: Bearer <your api key>`, from the [Account page](https://www.bark.gg/account). Without it, only `lookup` and `speed` work.

## Tools

| Tool | What it does |
|---|---|
| `lookup` | When an alert happened, reached Bark and reached you |
| `speed` | Bark's speed medians and feed status |
| `track`, `untrack` | Tracks or untracks what you paste |
| `list_tracked` | What you track, and how much of your plan it uses |
| `recent_alerts` | Your latest alerts |
| `why_not` | Why an alert didn't reach one of your destinations |
| `usage` | Your plans, add-ons and limits |

## Claude Code

```bash
claude mcp add --transport http bark https://www.bark.gg/api/mcp --header "Authorization: Bearer YOUR_API_KEY"
```

## Claude Desktop

In **Settings → Developer → Edit Config**, add to `claude_desktop_config.json` (needs Node.js), then restart:

```json
{
  "mcpServers": {
    "bark": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://www.bark.gg/api/mcp", "--header", "Authorization:${BARK_AUTH}"],
      "env": { "BARK_AUTH": "Bearer YOUR_API_KEY" }
    }
  }
}
```

## Cursor

Add to `~/.cursor/mcp.json`, then turn the server on in **Cursor Settings → MCP**:

```json
{
  "mcpServers": {
    "bark": {
      "url": "https://www.bark.gg/api/mcp",
      "headers": { "Authorization": "Bearer YOUR_API_KEY" }
    }
  }
}
```

## Other assistants

Any MCP client connects with the same address and header. Every docs page is also Markdown at its address plus `.md`, and the whole guide is [llms-full.txt](https://www.bark.gg/llms-full.txt).

The key acts as you: if it leaks, rotate it on the [Account page](https://www.bark.gg/account).

---

Page: https://www.bark.gg/docs/mcp · Every page: https://www.bark.gg/llms.txt · The whole guide: https://www.bark.gg/llms-full.txt
