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.Generate your MCP server
Run the following command to generate an MCP server from Snag Docs:
This sets up an MCP server that your AI tools can automatically detect and use.
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.
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:
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
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.