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

# MCP

## MCP (Model Context Protocol) Integration

QuickSilver supports integration as an MCP-compatible server, allowing real-time communication with any client that implements the MCP specification.

### Configuration

Add the following configuration to your MCP client settings:

```json
{
  "mcpServers": {
    "quicksilver-server": {
      "url": "https://api-quicksilver.iotex.ai/sse?authorization=your-api-key"
    }
  }
}
```

{% hint style="info" %}
Replace `your-api-key` with your actual QuickSilver API key.
{% endhint %}

## Features

* **Real-time Communication**

  Built on Server-Sent Events (SSE) for streaming responses and persistent connections
* **Protocol Compliance**

  Fully adheres to the MCP specification *(insert link if available)*
* **Secure Authentication**

  Authenticated via API key passed securely in the URL

### Usage

Once configured, your MCP-compatible client can:

* Establish and maintain a persistent connection with QuickSilver
* Receive streaming responses in real time
* Maintain conversation context across sessions
* React to live data updates from your agent

### 💡 Tips

* Replace your-api-key with your actual QuickSilver API key
* Ensure your MCP client supports SSE connections
* Connection lifecycle is automatically handled by the client
* Do not expose your API key publicly — keep it secure at all times


---

# 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://docs.iotex.io/quicksilver/developers/other-methods/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.
