MCP-Insomnia is an MCP server that enables AI assistants to manage and execute API collections in an Insomnia-compatible format. It connects directly to local Insomnia database files across macOS, Linux, and Windows, as well as an isolated local storage space. Developers, QA engineers, and API designers use this server to automate API lifecycle management through conversational AI interfaces. The server provides tools to create and structure collections, manage nested request folders, configure layered environment variables, and trigger HTTP requests with custom timeouts and response size limits. It also includes utilities to convert API definitions from OpenAPI specs, Postman collections, and cURL commands directly into Insomnia requests. Additionally, MCP-Insomnia allows developers to generate client-side code snippets across numerous programming languages and synchronize modified workspaces bidirectionally with the local desktop Insomnia application.
Category: CRM, ERP & E-commerce
Tags: api testing, collections, http, insomnia, rest
mcpServers: json { "mcpServers": { "insomnia": { "command": "npx", "args": ["-y", "mcp-insomnia"] } } } 4. If your Insomnia data is stored in a custom path, add an env block setting INSOMNIA_DATA_DIR to your database directory. 5. Restart your MCP client to load the tools.Part of MCP Servers
MCP-Insomnia is a Model Context Protocol server that lets AI assistants interact with Insomnia API collections. It allows agents to create, inspect, execute, and export API requests and environments, and interact directly with local Insomnia desktop storage.
You can run MCP-Insomnia without prior installation using npx by specifying npx -y mcp-insomnia in your MCP client configuration. Alternatively, install it globally using npm install -g mcp-insomnia or clone the repository and build from source.
By default, MCP-Insomnia saves working files in an isolated local storage path. Changes do not affect the Insomnia desktop application until you explicitly run synchronization tools like sync_to_insomnia to write updates to Insomnia's database.
MCP-Insomnia includes tools to import API requests from cURL commands, Postman Collection version 2.1 JSON files, OpenAPI 3.x or Swagger 2.x JSON specifications, and standard Insomnia V4 export files.
Yes, MCP-Insomnia is open-source software distributed under the MIT License on GitHub.