Envmcp MCP Server

A lightweight way to use environment variables in your Cursor MCP server definitions.

Local serverstdio

What is the Envmcp MCP server?

Envmcp MCP server is a locally run integration for AI assistants that speak the Model Context Protocol. A lightweight way to use environment variables in your Cursor MCP server definitions.

Setting it up

The server ships on npm as envmcp, 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.

Configuration and credentials

You will need one environment variable: DATABASE_URL. The server will not start without them, which is usually why the tools fail to appear on a first run. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.

Choosing this one

Plenty of developer tooling servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. It is maintained by griffithsbs; 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.

Before you rely on it

  • 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.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the envmcp mcp server does with a few real requests.

How to install the Envmcp MCP server

{
  "mcpServers": {
    "envmcp": {
      "command": "npx",
      "args": ["-y", "envmcp"],
      "env": {
        "DATABASE_URL": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

VariableDescriptionRequired
DATABASE_URLEndpoint or connection string the server talks to.Yes

Frequently asked questions

It connects Envmcp to MCP-compatible AI assistants such as Claude and Cursor. Instead of copying data back and forth by hand, the assistant works with Envmcp directly.