# MCP

Our MCP server allow's you to connect your development tools and AI tools to connect directly to our  infrastructure. This allows you to integrate anything Bitcoin Balance related to be used in your workflow.

**MCP URL:** <https://api.bitcoin-balance-api.com/mcp>

The connection needs the api key to be in the `X-API-Key` header.

### Cursor Implementation

When configuring the MCP in Cursor you can easily do this in your project directory via `.cursor/mcp.json`

```
{
  "mcpServers": {
    "bitcoin-balance-api": {
      "url": "https://api.bitcoin-balance-api.com/mcp",
      "headers": {
        "X-API-Key": "YOUR_SECRET_API_KEY"
      }
    }
  }
}
```

Or via the UI in **Cursor** -> **Settings** -> **Tools & MCPs**:

<figure><img src="/files/kqyA1yynbXI1Zue4olhq" alt=""><figcaption></figcaption></figure>

**Don't forget to enable it**, also when configured via the configuration file. Once it is enabled, the AI can access the server:

<figure><img src="/files/chBrdfYldFPxkGqqK76V" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: 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:

```
GET https://docs.bitcoin-balance-api.com/endpoints/mcp.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
