MCPVault

get_environment_variables

MCP tool from MCP Insomnia by anggasct

Get environment variables

How to use it

get_environment_variables is exposed by the MCP Insomnia MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the get_environment_variables tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.

Install MCP Insomnia

$npx @modelcontextprotocol/inspector node dist/index.js # test via MCP Inspector
FULL MCP INSOMNIA LISTING

Other tools in MCP Insomnia (34)

create_collection

Create new collection/workspace

create_folder

Create folder within collection

create_request_in_collection

Create new request

delete_request

Delete request

environmentId

environmentVariables

execute_insomnia_request

Execute a request directly from Insomnia without syncing (supports environment resolution and timeouts — see Request execution)

execute_request

Execute an MCP-stored request and return the response (supports environment resolution, timeouts, and response size limits — see Request execution)

export_collection

Export collection to JSON format

generate_code_snippet

Generate 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 client selects a library (e.g. axios for javascript, curl for shell).

get_collection_detail

Get full details and statistics of a collection

get_insomnia_collection

Get full details of a specific Insomnia workspace

get_insomnia_request

Get full details of a specific Insomnia request

get_request

Get full details of a specific request

get_request_history

Get execution history of a request (up to 20 entries per request)

get_stats

Get global statistics of all collections

import_from_curl

Parse cURL command into a request

import_from_insomnia_export

Import collections from a standard Insomnia V4 export file

import_from_openapi

Import OpenAPI 3.x or Swagger 2.x JSON

import_from_postman

Import Postman Collection (v2.1) JSON

list_collections

List all collections

list_insomnia_collections

List all workspaces/collections from Insomnia

list_insomnia_projects

List all projects/teams from Insomnia

list_requests

List all requests, optionally filter by collection

maxResponseBytes

overrideVariables

requestId

search

Search across all collections, folders, and requests

set_environment_variable

Set environment variable

sync_all_from_insomnia

Import all workspaces from Insomnia to MCP

sync_from_insomnia

Import a workspace from Insomnia to MCP

sync_to_insomnia

Export an MCP collection back to Insomnia

timeoutMs

update_request

Update existing request