---
title: 'Using AI Coding Assistants?'
description: 'Connect Cursor, Claude Code, or Copilot to Snag Docs via MCP server or llms.txt for context-aware API coding help and Web3 development support.'
keywords:
  - "AI coding assistant"
  - "Web3 development tools"
  - "Snag API AI"
  - "MCP server"
  - "llms.txt"
icon: 'robot'
---

> **For AI agents:** the complete documentation index is at [llms.txt](https://docs.snagsolutions.io/llms.txt). Append `.md` to any page URL for its markdown version.

# Use Snag Docs with Your AI Coding Assistant

Supercharge your development workflow by connecting your favorite AI coding assistants—like **Cursor**, **WindSurf**, or **Claude Code**—to Snag Docs. There are two main ways to do this:

## 1. Connect via Model Context Protocol (MCP)

The **[Model Context Protocol (MCP)](https://modelcontextprotocol.io/)** lets you connect AI tools directly to Snag Docs for real-time, context-aware answers and code suggestions.

<Steps>
<Step title="Generate your MCP server">
  Run the following command to generate an MCP server from Snag Docs:

  ```bash
  npx mint-mcp add snag
  ```

  <Check>
  This sets up an MCP server that your AI tools can automatically detect and use.
  </Check>
</Step>

<Step title="Start using with your AI assistant">
  Once the server is running, open your AI coding assistant. It should automatically detect and integrate with the MCP server for Snag Docs.

  <Check>
  You can now ask questions and get context-aware code suggestions powered by your own documentation.
  </Check>
</Step>
</Steps>

## 2. Index Snag Docs via `llms.txt` or `llms-full.txt`

AI tools can index our documentation for smarter, more relevant answers by using one of two special files:

- **[`llms.txt`](https://docs.snagsolutions.io/llms.txt)** – A machine-readable map of your documentation, optimized for LLMs.
- **`llms-full.txt`** – A single file containing all your documentation content, ideal for bulk ingestion.

<Steps>
<Step title="Point your AI tool to `llms.txt` or `llms-full.txt`">
  Many AI editors allow you to provide a link to documentation for indexing. Use one of the following:

  - [https://docs.snagsolutions.io/llms.txt](https://docs.snagsolutions.io/llms.txt)
  - [https://docs.snagsolutions.io/llms-full.txt](https://docs.snagsolutions.io/llms-full.txt)

  <Tip>
  Some editors (like Cursor) automatically index documentation you add in settings. Others may require referencing the docs in the prompt using an **@** symbol or similar. For example:

  ```
  @docs What is the loyalty program setup process?
  ```

  Check your tool’s documentation for exact syntax.
  </Tip>
</Step>

<Step title="Verify indexing and start coding">
  After linking your documentation, your AI assistant will use Snag Docs as a knowledge base for completions, suggestions, and answers.

  <Check>
  You’ll get smarter, context-aware help based on the latest Snag Docs content.
  </Check>
</Step>
</Steps>

---

By connecting your AI coding assistant to Snag Docs, you unlock smarter, faster, and more accurate development support—right where you need it.

## Related pages

<Columns cols={2}>
  <Card title="API Reference" icon="code" href="/api-reference/introduction">
    Snag REST API authentication, endpoints, and base URL configuration.
  </Card>
  <Card title="SDK Reference" icon="box-open" href="/api-reference/sdk">
    TypeScript SDK for type-safe interaction with Snag APIs.
  </Card>
  <Card title="Developer Getting Started" icon="rocket" href="/loyalty/development/getting-started">
    Set up your API key and make your first Snag API call.
  </Card>
  <Card title="Stratus Functions" icon="function" href="/stratus/functions">
    Write and deploy serverless functions for custom onchain logic.
  </Card>
</Columns>
