Snag Docs logo

Using AI Coding Assistants?

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.

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) lets you connect AI tools directly to Snag Docs for real-time, context-aware answers and code suggestions.

Snag Docs hosts an MCP server at:

https://docs.snagsolutions.io/_mcp

It needs no API key and exposes two tools: searchDocs, which searches guides and API reference pages, and getPage, which returns a page as Markdown.

1
Add the server to your AI tool
claude mcp add --transport http snag-docs https://docs.snagsolutions.io/_mcp

Your AI tool can now search and read Snag Docs on demand.

2
Ask a question

Start a new session and ask something the docs cover, for example "What does forceComplete do when completing a loyalty rule?". The assistant calls searchDocs, then getPage, and answers from the current documentation.

You can now ask questions and get context-aware code suggestions powered by the latest Snag Docs.

The Snag Docs MCP server reads documentation only. It does not call the Snag API on your behalf. Use the Snag SDK or the REST API with your API key for that.

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 – 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.
1
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:

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.

2
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.

You’ll get smarter, context-aware help based on the latest Snag Docs content.


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

API Reference

Snag REST API authentication, endpoints, and base URL configuration.

SDK Reference

TypeScript SDK for type-safe interaction with Snag APIs.

Developer Getting Started

Set up your API key and make your first Snag API call.

Stratus Functions

Write and deploy serverless functions for custom onchain logic.