> For the complete documentation index, see [llms.txt](https://blackswanwtf.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://blackswanwtf.gitbook.io/docs/agent-to-agent/mcp.md).

# MCP

Access BlackSwan via the Model Context Protocol. Works with Claude Desktop, OpenClaw, and other MCP clients.

### Endpoint

```json
https://mcp.blackswan.wtf/mcp
```

No API key required.

### What's Included

| Tool  | Timeframe        |
| ----- | ---------------- |
| flare | 15 minute window |
| core  | 1 hour window    |

Both return the latest cached analysis.

### Claude Desktop

Add to your claude\_desktop\_config.json:

```
{
  "mcpServers": {
    "blackswan": {
      "type": "http",
      "url": "https://mcp.blackswan.wtf/mcp"
    }
  }
}
```

Then ask Claude:

* "What does Flare say about current crypto risk?"
* "Give me a Core risk assessment"

### REST API

If you don't need MCP, use the REST endpoints directly:

```
curl -s https://mcp.blackswan.wtf/api/flare
curl -s https://mcp.blackswan.wtf/api/core
```

### Limitations

* Returns cached analysis (updated periodically)
* No custom parameters
* Rate limited

For real-time custom analysis, use x402.

### Error Handling

| HTTP Status | Meaning                        |
| ----------- | ------------------------------ |
| 200         | Success                        |
| 502         | Agent output failed validation |
| 503         | No recent agent runs           |
| 500         | Server error                   |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://blackswanwtf.gitbook.io/docs/agent-to-agent/mcp.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
