MCP Insomnia MCP Server

MCP server for making HTTP requests and managing API collections

Local serverstdioPython

What is the MCP Insomnia MCP server?

Most developer tooling work still happens through a UI a human drives. MCP Insomnia MCP server moves it into the conversation instead. MCP server for making HTTP requests and managing API collections.

The short version

MCP-Insomnia is an MCP (Model Context Protocol) server that enables AI agents to create and manage API collections in Insomnia-compatible format. This server provides tools for managing collections, requests, and environments that can be exported to Insomnia.

The tools it exposes

The server publishes 6 tools. What each one is for:

  • import_from_curl — Parse cURL command into a request
  • import_from_postman — Import Postman Collection (v2.1) JSON
  • import_from_openapi — Import OpenAPI 3.x or Swagger 2.x JSON
  • import_from_insomnia_export — Import collections from a standard Insomnia V4 export file
  • generate_code_snippet — Generate a code snippet for a request. Requires requestId and target. Supported targets: c, clojure, csharp, go, http, java, javascript, kotlin
  • Prerequisites — The Prerequisites tool exposed by this server

What it needs from you

Configuration is passed through the environment: INSOMNIA_DATA_DIR. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.

  • Node.js 18+ - npm or yarn There are three ways to use mcp-insomnia.

Getting it running

The server ships on npm as @modelcontextprotocol/inspector, so your MCP client can launch it on demand — there is no separate build step. Add the server block to your client's configuration, restart it, and the tools register themselves.

How it compares

This sits in the developer tooling group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. MCP Insomnia's toolset — import_from_curl, import_from_postman, import_from_openapi and 3 more — is a fair guide to whether it matches your workflow. It is maintained by anggasct; worth a glance at recent repository activity before you build anything load-bearing on it.

We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.

Things to watch

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Available tools

ToolWhat it does
import_from_curlParse cURL command into a request
import_from_postmanImport Postman Collection (v2.1) JSON
import_from_openapiImport OpenAPI 3.x or Swagger 2.x JSON
import_from_insomnia_exportImport collections from a standard Insomnia V4 export file
generate_code_snippetGenerate a code snippet for a request. Requires requestId and target. Supported targets: c, clojure, csharp, go, http, java, javascript, kotlin, node, objc, ocaml, php, powershell, python, ruby, shell, swift. Optional cl
PrerequisitesThe Prerequisites tool exposed by this server.

How to install the MCP Insomnia MCP server

{
  "mcpServers": {
    "insomnia": {
      "command": "npx",
      "args": ["mcp-insomnia"]
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

  • Node.js 18+ - npm or yarn There are three ways to use mcp-insomnia.
VariableDescriptionRequired
INSOMNIA_DATA_DIRFilesystem location the server is allowed to use.Optional

Example prompts to try

  • Use MCP Insomnia to import from curl.
  • Use MCP Insomnia to import from postman.
  • Use MCP Insomnia to import from openapi.

Frequently asked questions

It connects MCP Insomnia to MCP-compatible AI assistants such as Claude and Cursor, exposing 6 tools (import_from_curl, import_from_postman, import_from_openapi, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with MCP Insomnia directly.