> For the complete documentation index, see [llms.txt](https://docs.grix.finance/grix/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.grix.finance/grix/getting-started/integrating-your-ai-agent.md).

# Integrating Your AI Agent

Grix offers flexible integration options for AI agents, enabling seamless access to comprehensive derivatives data. You can connect your AI agent using either the Model Context Protocol (MCP) or direct plugin integration, depending on your platform's capabilities. MCP provides a standardized connection, while plugins offer customized adaptations for specific platforms. **Access to Grix data requires a valid Grix API key with sufficient credits, which can be obtained through the Grix DApp.**

### Model Context Protocol (MCP) Integration

The Model Context Protocol (MCP) is an open standard that enables AI systems to securely connect to data sources. By implementing MCP, Grix provides a unified and reliable data feed for AI agents.

To connect your AI agent to Grix via MCP, your platform needs to support MCP connections and **you need a valid Grix API key with sufficient credits.** For example, you can connect to Grix using Cursor

**Connecting to Grix with Cursor in less then 2 minutes:**

[Link to GitHub guide](https://github.com/grixprotocol/.github/tree/main/profile/mcp) on connecting Cursor to Grix via MCP.


---

# 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.grix.finance/grix/getting-started/integrating-your-ai-agent.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.
