llms.txt file you drop into context. Both are free, require no API key, and take under a minute to set up.
Overview
Two ways to give your coding agent full access to the Swarms API documentation:
No API key required for either. No installation needed.
Option 1: MCP Server (Recommended for Agents)
The Swarms Documentation MCP Server is a hosted remote server that exposes the entire Swarms API documentation as a live searchable tool. Connect it once and your agent can look up API references, code examples, and architecture guides on-demand. MCP Server URL:https://docs.swarms.ai/mcp
Available Tool: SearchSwarmsApiDocumentation
"agent completion API parameters""how to run a sequential workflow""mixture of agents example Python""authentication and API key setup""batch processing multiple agents"
Setup by Agent
Claude Code
Claude Desktop
Add to~/Library/Application Support/Claude/claude_desktop_config.json (macOS):
Cursor
Add to Cursor Settings → MCP, or to your project-level.cursor/mcp.json:
Windsurf
Open the MCP configuration panel and add:OpenAI Codex / Agents SDK
VS Code (GitHub Copilot)
Add to your workspace.vscode/settings.json:
Continue.dev
Add to~/.continue/config.json:
Any MCP-Compatible Agent
Point any agent or framework that supports remote MCP HTTP transport at:Option 2: llms.txt (For Vibe Coders)
llms.txt is a plain-text file containing the full Swarms API documentation in a format optimized for LLMs. Drop it into your context window, paste it into your system prompt, or use it as a reference file in any AI-assisted coding workflow.
URL: https://docs.swarms.ai/llms.txt
When to Use llms.txt
Usellms.txt when:
- You’re in a one-shot vibe coding session and want to paste docs directly into the prompt
- Your agent or IDE doesn’t support MCP yet
- You want to seed a new conversation with full API knowledge before asking your agent to write Swarms code
- You’re using a raw API call (OpenAI, Anthropic, Groq, etc.) and want docs in the system prompt
How to Use It
In a system prompt:- Open
https://docs.swarms.ai/llms.txtin your browser - Copy the full content
- Paste it at the top of your conversation or into the system prompt field
- Start asking questions and generating Swarms code with full doc context