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