swaggbot
Integrates with Ollama as a local LLM provider for natural language understanding and response generation.
Integrates with OpenAI's API as an LLM provider for natural language understanding and response generation.
Allows interaction with any Swagger/OpenAPI documented API, enabling natural language queries and automated workflow execution.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@swaggbotList all users with role admin"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Swaggbot
Transform Swagger/OpenAPI docs into conversational interfaces. Self-hosted, local-first, AI-powered API exploration.
Quick Start
# Docker (recommended)
git clone https://github.com/techbloom-ai/swaggbot.git
cd swaggbot && cp .env.example .env
# Generate SESSION_SECRET and add LLM API keys
docker-compose up -dRelated MCP server: MCPHy
What is Swaggbot?
Swaggbot converts any Swagger/OpenAPI documented API into a conversational interface. Built for developers who want to:
Explore APIs naturally — Chat instead of reading raw JSON
Automate workflows — Multi-step operations with data extraction
Stay in control — Self-hosted, data stays local
Integrate anywhere — Web UI, MCP server, or direct API
Features
🤖 Natural Language API Interaction — "List all users" →
GET /users🔄 Workflow Automation — Chain multiple API calls with dependency resolution
🔌 MCP Server — Use with Claude Desktop, Cursor, Windsurf
🏠 Self-Hosted — Your data, your infrastructure
🔐 Session Management — Encrypted auth tokens, per-session isolation
🌐 Multi-Provider LLM — Moonshot, OpenAI, Anthropic, Ollama
📊 Array Filtering —
[name=John].idsyntax for data extraction🛡️ Security — CSP headers, rate limiting, encrypted storage
Architecture
┌─────────┐ ┌─────────┐ ┌─────────┐
│ Web UI │ │ MCP │ │ API │
│ Next.js │ │ Server │ │ Clients │
└────┬────┘ └────┬────┘ └────┬────┘
└─────────────┼─────────────┘
▼
┌─────────────────┐
│ Chat Service │ Intent Classification
│ + LLM Provider │ → Curl Generation → Execution
└─────────────────┘
│
┌─────────────┼─────────────┐
▼ ▼ ▼
┌────────┐ ┌─────────┐ ┌──────────┐
│SQLite │ │Workflow │ │ Target │
│(Local) │ │ Engine │ │ API │
└────────┘ └─────────┘ └──────────┘Installation
Prerequisites
Node.js 18+ or Docker
LLM API key (Moonshot, OpenAI, Anthropic, or Ollama)
Docker (Recommended)
# 1. Clone and configure
git clone https://github.com/techbloom-ai/swaggbot.git
cd swaggbot
cp .env.example .env
# 2. Set SESSION_SECRET (required for auth)
# Linux/macOS:
export SESSION_SECRET=$(openssl rand -base64 32)
# Or add to .env: SESSION_SECRET=your_random_secret_here
# 3. Add your LLM API key to .env
# MOONSHOT_API_KEY=your_key_here
# 4. Start
docker-compose up -dDatabase migrations run automatically on first startup.
Local Development
git clone https://github.com/techbloom-ai/swaggbot.git
cd swaggbot
pnpm install
cp .env.example .env.local
# Edit .env.local with SESSION_SECRET and LLM API keys
pnpm db:migrate
pnpm devConfiguration
Variable | Required | Default | Description |
| Yes | — | Random secret for session encryption (min 32 chars) |
| Yes* | — | Moonshot AI API key |
| Yes* | — | OpenAI API key |
| Yes* | — | Anthropic API key |
| Yes* | — | Ollama server URL |
| No |
|
|
| No |
| SQLite database path |
| No |
| App base URL |
*At least one LLM provider required
Generate SESSION_SECRET
# Linux/macOS
openssl rand -base64 32
# Or any random string (min 32 characters)API Reference
REST API
All endpoints require authentication via session cookie.
Endpoint | Method | Description |
| POST | Authenticate and create session |
| POST | Create API session from Swagger URL |
| GET | List all sessions (paginated) |
| POST | Send message to API |
| POST | Create multi-step workflow |
| POST | Execute workflow |
MCP Server
{
"mcpServers": {
"swaggbot": {
"command": "docker",
"args": ["compose", "run", "--rm", "swaggbot-mcp"],
"env": {
"SESSION_SECRET": "your_secret",
"MOONSHOT_API_KEY": "your_key"
}
}
}
}Usage Examples
Web UI
Navigate to login page
Create a session with your Swagger URL
Start chatting:
"Create a user named John" "List all pets with status available" "Execute the login workflow"
API
# Authenticate
curl -X POST http://localhost:3003/api/auth/login \
-H "Content-Type: application/json" \
-d '{"password": "your_password"}' \
-c cookies.txt
# Chat with API
curl -X POST http://localhost:3003/api/chat \
-H "Content-Type: application/json" \
-b cookies.txt \
-d '{"sessionId": "...", "message": "List all users"}'Technology Stack
Component | Technology |
Framework | Next.js 16 (App Router) |
Language | TypeScript 5 |
Database | SQLite (libSQL/Turso) |
ORM | Drizzle ORM |
UI | shadcn/ui + TailwindCSS 4 |
State | Zustand |
LLM SDK | Vercel AI SDK patterns |
MCP | Model Context Protocol SDK |
Testing | Vitest |
Container | Docker + Docker Compose |
Project Structure
swaggbot/
├── app/ # Next.js App Router
│ ├── api/ # API routes
│ ├── sessions/ # Session UI
│ └── settings/ # Settings page
├── components/ # shadcn/ui components
├── lib/
│ ├── db/ # Database schema & migrations
│ ├── llm/ # LLM provider implementations
│ ├── services/ # Business logic
│ ├── auth/ # Session & encryption
│ └── prompts/ # LLM prompt management
├── scripts/ # MCP server & entrypoint
└── data/ # SQLite storage (Docker volume)Security
Local-first: All data stored locally in SQLite
Encrypted tokens: Auth tokens encrypted with AES-256-GCM
Session-based auth: Password-protected access
CSP headers: Content Security Policy protection
Rate limiting: Per-endpoint limits configurable
No telemetry: Zero analytics or tracking
License
MIT © TechBloom
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-quality-maintenanceAutomatically generates MCP servers from OpenAPI/Swagger specifications, enabling users to interact with any REST API through natural language with flexible endpoint filtering and authentication support.Last updated
- Alicense-qualityDmaintenanceTransform REST APIs into intelligent, chat-driven MCP servers with zero code changes. Simply point it at your Swagger/OpenAPI specification to get natural language querying capabilities powered by AI.Last updated264MIT
- Flicense-qualityDmaintenanceAutomatically converts Swagger/OpenAPI specifications into MCP servers, enabling AI agents to interact with any REST API through natural language by exposing endpoints as AI-friendly tools.Last updated3
- Alicense-qualityDmaintenanceTransforms OpenAPI specs into an MCP server, enabling dynamic API interaction through natural language with automatic authentication and endpoint discovery.Last updated131MIT
Related MCP Connectors
Self-hosted MCP gateway: turn any API, database or MCP server into AI connectors — no code.
MCP server for AI access to SmartBear tools, including BugSnag, Reflect, Swagger, PactFlow, QTM4J.
GibsonAI MCP server: manage your databases with natural language
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/TechBloom-ai/swaggbot'
If you have feedback or need assistance with the MCP directory API, please join our Discord server