insomnia-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| MCP_PORT | No | Port for the HTTP transport. | |
| MCP_TRANSPORT | No | Transport mode to use (stdio, http, or both). | |
| MCP_AUTH_TOKEN | No | Bearer token required for HTTP transport authentication. | |
| INSOMNIA_DB_PATH | No | Override the auto-detected Insomnia database path. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| list_workspacesB | List all Insomnia workspaces (collections and design documents) |
| get_workspaceA | Get full details of a workspace including its request groups (folders) and requests |
| create_workspaceC | Create a new Insomnia workspace (collection) |
| delete_workspaceB | Delete a workspace and all its contents |
| list_requestsB | List all requests, optionally filtered by workspace |
| get_requestB | Get full details of a single request |
| search_requestsA | Find requests by method, URL path pattern, or free-text name. Returns ranked matches. Use this before send_request when you don't have an exact request ID. |
| create_requestC | Create a new HTTP request in a workspace or folder |
| update_requestC | Update an existing request (partial update) |
| delete_requestC | Delete a request by ID |
| create_folderC | Create a request folder inside a workspace or another folder |
| set_active_environmentA | Set the active environment for a workspace. All subsequent send_request calls for that workspace will use this environment automatically. |
| send_requestA | Send a stored Insomnia request. Auto-resolves environment variables (including base_url), applies authentication (Bearer, OAuth2, Basic, API Key), and records response history. If you only have a path like '/users', use search_requests first to find the request ID. |
| send_http_requestC | Send a one-off HTTP request without a saved Insomnia request. |
| run_request_chainA | Execute a sequence of requests in order, passing extracted values from each response as variables into subsequent requests. Perfect for: login → get token → call authenticated endpoint. |
| get_response_historyC | View the last 10 responses for a stored request |
| export_as_curlB | Export a stored request as a curl command with environment variables resolved |
| import_from_curlA | Parse a curl command and save it as a new Insomnia request. Supports -X, -H, -d, -u, --data, --header flags. |
| clear_token_cacheA | Clear cached OAuth2 / auth tokens so they are re-fetched on the next request. Use when tokens have been revoked or you've rotated credentials. |
| list_environmentsB | List all environments, optionally filtered by workspace |
| get_environmentB | Get an environment and all its variable values |
| create_environmentB | Create a new environment for a workspace. Sub-environments should have a base environment as their parentId. |
| update_environmentA | Update environment variables. By default merges with existing vars; set replace=true to overwrite all. |
| delete_environment_variableC | Remove one or more variables from an environment |
| delete_environmentC | Delete an environment by ID |
| insomnia_statusA | Show the health and summary of the current Insomnia database: DB format, workspace count, active environments, cached tokens, and any config issues. |
| endpoint_summaryC | List all endpoints in a workspace as a compact API reference: method, path, auth type, and folder. |
| compare_environmentsA | Show a diff of variables between two environments — useful for spotting what differs between staging and production. |
| infer_response_schemaB | Send a request and infer the JSON schema of the response body. Useful for understanding what an API returns without reading docs. |
| assert_responseB | Send a request and validate the response against a set of assertions (status code, headers, JSON body values, duration). Returns pass/fail per assertion. |
| diff_responsesA | Send the same request (or two different requests) against two environments and show a structural diff of the JSON responses. Great for comparing staging vs production. |
| run_with_scriptsA | Send a stored request, running its pre-request script first (to mutate variables) and post-response script after (to extract values). Mirrors Insomnia's scripting behaviour. |
| list_projectsA | List all Insomnia projects (v12+ only). Projects are the top-level containers above workspaces. |
| git_sync_statusB | Detect if a workspace uses Insomnia's Git sync and return branch/remote info. Reads the .insomnia folder if present. |
| check_stale_dataA | Check whether Insomnia has modified the database files since the MCP server last read them. Warns you if Insomnia is open and may have changed data. |
| run_folderC | Execute all requests in a folder (RequestGroup) sequentially, like an Insomnia test suite. Optionally extract values from each response and pass them forward. |
| generate_crud_requestsA | Auto-generate a complete CRUD set of requests for a REST resource (e.g. 'users' → GET list, GET by ID, POST, PUT, PATCH, DELETE). Creates a folder containing all 6 requests. |
| duplicate_workspaceC | Create a full deep copy of a workspace including all folders and requests. |
| move_folderB | Move a request folder (and all its contents) to a different parent workspace or folder. |
| bulk_update_headerB | Add, update, or remove a header across all requests in a workspace or folder. Useful for things like rotating an API key header everywhere at once. |
| find_duplicate_requestsA | Scan a workspace for requests with identical method + URL (after variable resolution). Returns groups of duplicates so you can clean them up. |
| import_openapiA | Parse an OpenAPI 3.x or Swagger 2.x spec (JSON or YAML string) and create a workspace with all endpoints as Insomnia requests, grouped by tag into folders. |
| export_openapiA | Generate an OpenAPI 3.0 spec from all requests in a workspace. Returns the spec as a JSON string you can save to a file. |
| load_testC | Run a load test against a stored request. Reports p50/p90/p95/p99 latency, RPS, status code distribution, and error rate. |
| contract_testC | Send a request and check the response against a stored expected JSON schema. Fails if the response structure has drifted (missing fields, type changes). |
| health_checkC | Run a set of requests and report their health (status, latency, pass/fail). Good for a quick smoke test of all endpoints in a workspace. |
| run_data_drivenB | Run a request once per row of CSV or JSON data, substituting row values as {{ variables }}. Returns pass/fail per row. Useful for bulk testing with different inputs. |
| response_trendA | Analyse the response history for a request over time. Shows latency trends, status code changes, and flags when it started failing. |
| export_junitC | Run assertions on multiple requests and export the results as JUnit XML — compatible with GitHub Actions, GitLab CI, and Jenkins test reporters. |
| import_postmanB | Import a Postman Collection v2.1 JSON string. Creates a workspace with all folders and requests, preserving auth, headers, and body. |
| export_postmanA | Export a workspace as a Postman Collection v2.1 JSON string. Can be imported directly into Postman. |
| import_harA | Import an HTTP Archive (HAR) file — exported from browser DevTools Network tab. Creates a workspace with requests grouped by hostname. |
| export_insomnia_bundleB | Export a workspace as an Insomnia v4 JSON bundle (.json) — the format Insomnia uses for Import/Export. Can be shared with teammates and imported directly into Insomnia. |
| workspace_changelogA | Generate a changelog by comparing the current workspace against a snapshot (previous export bundle JSON). Shows added, removed, and modified requests. |
| ai_document_endpointB | Send a request, analyse the response, and use AI to generate a markdown description of what the endpoint does, its inputs, outputs, and error cases. |
| ai_generate_bodyB | Given a request with a JSON body template or example response, use AI to generate a valid, realistic request body with appropriate test data. |
| ai_detect_breaking_changesB | Compare two OpenAPI specs (current vs previous) and use AI to classify changes as breaking vs non-breaking, with impact analysis. |
| ai_suggest_testsB | Analyse existing requests in a workspace and suggest assertions, edge cases, and test scenarios you haven't covered yet. |
| ai_fix_requestB | Send a request, and if it fails (4xx/5xx), use AI to diagnose what's wrong and suggest fixes — missing headers, bad auth, wrong body shape, etc. |
| inspect_sslB | Inspect the TLS/SSL certificate for any HTTPS URL. Returns subject, issuer, expiry date, SANs, cipher suite, and days until expiry. |
| follow_redirectsB | Trace the full redirect chain for a URL. Shows each hop, status code, Location header, and duration. |
| lint_requestA | Lint a stored request for common problems: unresolved variables, missing Content-Type, hardcoded secrets, invalid JSON body, GET with body, duplicate headers. |
| lint_workspaceC | Lint all requests in a workspace and return a summary of issues. Good for running before a release. |
| start_mock_serverB | Start a local HTTP mock server on a given port. Define routes with method, path, status, and response body. Useful for testing without a real backend. |
| stop_mock_serverB | Stop a running mock server on a given port. |
| mock_server_logB | View the request log for a running mock server. |
| websocket_connectB | Connect to a WebSocket endpoint, optionally send messages, wait for responses, then close. Useful for testing WS APIs stored in Insomnia. |
| graphql_introspectB | Run a GraphQL introspection query against an endpoint and return the schema — all types, fields, queries, and mutations. |
| graphql_queryC | Send a GraphQL query or mutation to an endpoint. Supports variables and operation names. |
| graphql_formatC | Pretty-print and format a GraphQL query string. |
| graphql_scan_workspaceC | Scan a workspace for GraphQL requests and list them with their operation type (query/mutation/subscription). |
| sign_aws_requestB | Sign an HTTP request with AWS Signature Version 4. Returns the signed Authorization header and x-amz-date. Useful for calling AWS APIs directly. |
| generate_pkceC | Generate a PKCE (Proof Key for Code Exchange) code verifier and challenge pair for OAuth2 Authorization Code flow. Also builds the authorization URL. |
| compute_digest_authB | Compute an HTTP Digest Authentication header from a 401 WWW-Authenticate challenge. Use when an API requires Digest auth. |
| list_cookie_jarsC | List all cookie jars in a workspace. |
| get_cookie_jarC | Get all cookies in a cookie jar. |
| add_cookieC | Add or update a cookie in a cookie jar. |
| clear_cookiesB | Clear all cookies (or just cookies for a specific domain) from a cookie jar. |
| export_cookiesC | Export a cookie jar as a Netscape cookie file (compatible with curl --cookie-jar). |
| send_multipart_requestC | Send an HTTP request with a multipart/form-data body, attaching files from disk. Useful for testing file upload endpoints. |
| save_response_to_fileB | Send a request and save the response body directly to a file on disk. Useful for downloading files from APIs (PDFs, CSVs, images, etc.). |
| inspect_responseB | Send a request and intelligently inspect the response — auto-detects binary vs text, shows size, content-type, and a preview without dumping raw bytes. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 82 tools
Many tools send requests and then inspect/assert/analyse responses (send_request, send_http_request, assert_response, infer_response_schema, contract_test, inspect_response, ai_document_endpoint, ai_fix_request), creating overlapping boundaries and likely misselection. Descriptions help, but several tools have unclear practical distinctions.
All names use snake_case and are generally descriptive, with mostly verb_noun patterns. A few noun-phrase or status-style names (insomnia_status, endpoint_summary, response_trend, mock_server_log) are minor deviations.
82 tools is far beyond a well-scoped MCP server and includes many near-duplicate execution, inspection, testing, import/export, and helper variants. This is an extreme count mismatch for the apparent scope.
The surface covers workspaces, requests, environments, sending, testing, GraphQL, WebSocket, mock servers, imports/exports, auth helpers, and cookies. Some lifecycle gaps remain, such as no update_workspace, no delete_folder/get_folder, limited project management, and incomplete cookie-jar lifecycle operations.