create_collection
Create a new collection/workspace in Insomnia
Build, run and organise API requests in Insomnia format — import from cURL, Postman or OpenAPI, execute, read the response.
LABSCO SUMMARY
The pairing that matters is import plus execute: a cURL line, a Postman export or an OpenAPI spec becomes a real collection, and the request then actually runs with the environment resolved — workspace, sub-environment, folder chain, per-call overrides, in that order — so what comes back is the response rather than a rendered command. And because it reads and writes the installed Insomnia app's own database, work done here shows up in the GUI and work done in the GUI shows up here.
An API collection manager that stores collections in Insomnia's format and can also read and write the installed Insomnia app's own database directly. It creates and runs requests, resolves environment variables in layers at execution time, and imports from cURL, Postman and OpenAPI.
Node.js 18 or newer, launched with npx -y mcp-insomnia over stdio, installed globally, or built from source. No account and no key — collections live in the server's own storage. The tools that reach the installed Insomnia application read its local NeDB database directly, so Insomnia has to be on the machine for those to do anything.
One command — npx -y mcp-insomnia
USE CASES
Import the OpenAPI or Swagger file into a collection, then run one of the requests it generated.
Import the command as a request in the right collection and folder instead of losing it in scrollback.
Set the variables, then execute with the environmentId and whatever per-call overrides that run needs.
List the app's workspaces, pull one into storage, or run a request in place without syncing anything.
Import the v2.1 collection, then export the result as Insomnia V4 JSON.
Generate the snippet in the language and library you actually use.
Search by keyword across collections, folders and requests, then read the one you meant.
Read that request's execution history rather than firing it again blind.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
create_collectionCreate a new collection/workspace in Insomnia
create_folderCreate a folder to group requests within a collection
create_request_in_collectionCreate a new request within a specific collection/folder
delete_requestDelete a request from a collection
execute_insomnia_requestExecute a request directly from Insomnia app without syncing. Supports environment variable substitution.
execute_requestExecute a request and get a response
export_collectionExport collection to JSON (Insomnia V4 format)
generate_code_snippetGenerate a code snippet for a request in various languages/frameworks
get_collection_detailGet full details and statistics of a specific collection
get_environment_variablesGet environment variables from a collection
get_insomnia_collectionGet a complete collection from Insomnia app by workspace ID
get_insomnia_requestGet detailed request information directly from Insomnia
get_requestGet full details of a specific request by ID
get_request_historyGet the execution history of a specific request
get_statsGet global statistics of all collections
import_from_curlCreate a request from a cURL command
import_from_insomnia_exportImport collections from a standard Insomnia V4 export file
import_from_openapiGenerate requests from OpenAPI/Swagger specification
import_from_postmanImport collections from a Postman Collection v2.1 JSON file
list_collectionsList all collections and their structure
list_insomnia_collectionsList all collections directly from Insomnia app (requires Insomnia to be installed)
list_insomnia_projectsList all projects from Insomnia app
list_requestsList all requests across collections. Optionally filter by collectionId.
searchSearch for a keyword across all collections, folders, and requests
set_environment_variableSet environment variables for a collection
sync_all_from_insomniaImport all collections from Insomnia app into MCP storage
sync_from_insomniaImport a collection from Insomnia app into MCP storage
sync_to_insomniaExport a collection from MCP storage to Insomnia app
update_requestUpdate an existing request
BEFORE YOU INSTALL
29 tools when we connected.
CONTEXT COST
Rated by the size of the 29 tool definitions that ride along on every turn, not by how many there are
INSTALLATION
Add the block to your client, or run the command directly.
{
"mcpServers": {
"mcp-insomnia": {
"command": "npx",
"args": [
"-y",
"mcp-insomnia"
]
}
}
}npx -y mcp-insomnia