Skip to main content

MCP Server

Access the entire avnu Developers documentation through Anthropic’s Model Context Protocol (MCP) for seamless AI-assisted development.

Connect to MCP Server

Use this MCP endpoint with Claude Desktop, Claude Code, or any MCP-compatible AI tool

Available Tools

The MCP server provides the following tools:
Search across the avnu Developers knowledge base to find relevant information, code examples, API references, and guides. Use this tool when you need to:
  • Answer questions about avnu Developers
  • Find specific documentation
  • Understand how features work
  • Locate implementation details
The search returns contextual content with titles and direct links to the documentation pages.

LLMs.txt Files

We provide machine-readable documentation files following the llms.txt standard for direct AI consumption:

Context7

Context7 injects up-to-date documentation directly into your LLM prompts. Just say “use context7” and it fetches the latest docs automatically.

Install

claude mcp add context7 -- npx -y @upstash/context7-mcp@latest

Use with avnu

Add “use context7” to any prompt:
Build a token swap using avnu SDK. use context7
How do I integrate avnu paymaster for gasless transactions? use context7
Context7 will fetch the latest avnu documentation and inject it into context.

Setup Instructions

Add the MCP server to your Claude Desktop configuration:
{
  "mcpServers": {
    "avnu-docs": {
      "url": "https://docs.avnu.fi/mcp"
    }
  }
}
Configuration file location:
  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json

Example Queries

Once connected, you can ask your AI assistant questions like:

API Questions

“How do I get a swap quote from avnu?”“Show me how to use the paymaster API”

Implementation Help

“Build a swap integration with TypeScript”“How do I stake STRK tokens?”

Troubleshooting

“Why am I getting insufficient balance error?”“How do slippage settings work?”

Best Practices

“What’s the best way to handle integrator fees?”“How should I optimize gas for swaps?”

Benefits of AI-Assisted Development

Faster Onboarding

Get instant answers to questions without leaving your code editor

Code Generation

Generate boilerplate code for common integration patterns

Best Practices

Learn recommended approaches directly from documentation

Error Resolution

Quickly troubleshoot issues with contextual help

API Discovery

Explore features and capabilities through natural language

Always Updated

Access the latest documentation automatically

Feedback & Support

Join Developer Community

Share feedback on AI integration and get help from the avnu team