nango-mcp-server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@nango-mcp-serverlist all integrations in the dev environment"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Nango MCP Server
Self-hostable admin/operator MCP server for managing one or more Nango environments through the Nango REST API and Proxy.
Created by Lev Jampolsky at ValStratis.
This project is an independent MCP server for Nango. It is not affiliated with or endorsed by Nango. See the upstream Nango repository at NangoHQ/nango and Nango docs at nango.dev/docs.
It exposes tools for:
environment checks
provider template search
integration management
connection management
connection tags and metadata
Connect and reconnect sessions
provider API calls through Nango Proxy
The default setup reads Nango secret keys from environment variables or a .env file. Infisical is optional.
Status
This project is early-stage. It has been tested against a self-hosted Nango deployment and may need compatibility adjustments for Nango Cloud or future Nango API changes.
Why This Exists
Nango already solves OAuth, token refresh, provider auth injection, and proxying. This MCP gives agents and operators a structured control surface for Nango administration and provider API calls without exposing provider tokens to the agent.
It is meant for the operator side of Nango usage: inspecting environments, managing integrations and connections, creating Connect sessions, maintaining tags/metadata, and calling providers through Nango Proxy.
Management API responses are redacted for credential-like fields. proxy_request intentionally returns provider response data because that is the requested data plane.
Install
Recommended for MCP clients:
uvx --from git+https://github.com/LevSky22/nango-mcp-server.git nango-mcpuvx is the Python equivalent of the npx pattern commonly used by MCP servers: it runs the package in an isolated environment without making you manage a project virtualenv.
This requires uv / uvx to be installed. If you do not use uv, use pipx instead.
For a persistent user-level install:
pipx install git+https://github.com/LevSky22/nango-mcp-server.gitThen your MCP client can use:
nango-mcpFor local development:
git clone https://github.com/LevSky22/nango-mcp-server.git
cd nango-mcp-server
python3 -m venv .venv
.venv/bin/pip install -e ".[test]"Use the virtualenv command path in MCP configs when working from a checkout:
/absolute/path/to/nango-mcp-server/.venv/bin/nango-mcpConfiguration
Create a .env file for the MCP server. If you run nango-mcp from this project checkout, .env can live in the repository root:
cp .env.example .env
chmod 600 .envIf your MCP client launches nango-mcp from another working directory, set NANGO_MCP_ENV_FILE to an absolute path so the server can find the file reliably:
NANGO_MCP_ENV_FILE=/path/to/.envSingle environment:
NANGO_BASE_URL=https://api.nango.dev
NANGO_ENVIRONMENT=default
NANGO_SECRET_KEY=nango_secret_key_hereFinding Your Nango Secret Key
NANGO_SECRET_KEY is the Nango environment secret key, not a provider OAuth client secret and not a provider API key.
In the Nango UI:
Select the Nango environment you want this MCP server to operate against.
Open that environment's Environment Settings.
Copy the Secret Key.
Put it in your local
.envasNANGO_SECRET_KEY, or asNANGO_SECRET_KEY_<ENV>for a multi-environment setup.
Nango uses this key as the bearer token for backend/API requests. Anyone with this key can operate against that Nango environment, so keep it server-side and never commit it.
Multiple environments:
NANGO_BASE_URL=https://api.nango.dev
NANGO_MCP_ENVIRONMENTS=dev,prod
NANGO_SECRET_KEY_DEV=nango_dev_secret_key_here
NANGO_SECRET_KEY_PROD=nango_prod_secret_key_here
NANGO_MCP_ENVIRONMENT_ALIASES_PROD=live,productionOptional settings:
NANGO_MCP_REQUEST_TIMEOUT=20
NANGO_MCP_METADATA_NAMESPACE=nango_mcp
NANGO_MCP_READ_ONLY=false
NANGO_MCP_REQUIRE_CONFIRMATION=falseSet NANGO_MCP_READ_ONLY=true to block mutating tools. Set NANGO_MCP_REQUIRE_CONFIRMATION=true if you want write/delete tools to require an explicit confirmation phrase on every mutating call.
Optional Infisical Resolver
Direct .env secrets are the default. To resolve NANGO_SECRET_KEY values from Infisical instead:
NANGO_MCP_SECRET_RESOLVER=infisical
NANGO_MCP_ENVIRONMENTS=dev,prod
INFISICAL_URL=https://infisical.example.com
INFISICAL_UNIVERSAL_AUTH_CLIENT_ID=...
INFISICAL_UNIVERSAL_AUTH_CLIENT_SECRET=...
NANGO_MCP_INFISICAL_PROJECT_ID=...
NANGO_MCP_INFISICAL_ENVIRONMENT=prod
NANGO_MCP_INFISICAL_SECRET_PATH_TEMPLATE=/nango/{environment}
NANGO_MCP_INFISICAL_SECRET_NAME=NANGO_SECRET_KEYFor environment prod, the default template reads secret NANGO_SECRET_KEY from /nango/prod.
MCP Client Example
Generic MCP JSON using uvx:
{
"mcpServers": {
"nango": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/LevSky22/nango-mcp-server.git",
"nango-mcp"
],
"env": {
"NANGO_MCP_ENV_FILE": "/absolute/path/to/.env"
}
}
}
}Codex CLI
Use Codex's MCP command:
codex mcp add nango \
--env NANGO_MCP_ENV_FILE=/absolute/path/to/.env \
-- uvx --from git+https://github.com/LevSky22/nango-mcp-server.git nango-mcpOr edit ~/.codex/config.toml directly:
[mcp_servers.nango]
command = "uvx"
args = ["--from", "git+https://github.com/LevSky22/nango-mcp-server.git", "nango-mcp"]
[mcp_servers.nango.env]
NANGO_MCP_ENV_FILE = "/absolute/path/to/.env"If you installed with pipx, use command = "nango-mcp" and remove args. Restart Codex after editing the config.
Claude Code
Add the server with Claude Code's MCP command:
claude mcp add --transport stdio \
--env NANGO_MCP_ENV_FILE=/absolute/path/to/.env \
nango \
-- uvx --from git+https://github.com/LevSky22/nango-mcp-server.git nango-mcpIf you installed with pipx, replace everything after -- with nango-mcp. Restart Claude Code, or reload MCP servers if your client supports it.
Starter Prompt
After installing, use a read-only prompt first:
Use the nango MCP server. List the configured Nango environments, check the default environment, and list integrations. Do not create, update, delete, or proxy provider requests yet.For a multi-environment setup:
Use the nango MCP server. List configured environments, check the prod environment, and list integrations in prod. Do not make write/delete calls.Tools
This server exposes 23 tools grouped by workflow:
Area | Tools | What they do |
Environment |
| Show configured Nango environments and verify a secret can be resolved without returning it. |
Integrations |
| Inspect provider integrations, find Nango provider templates, and manage integration definitions. |
Connections |
| Inspect, summarize, import, or remove authorized provider connections. |
Tags and metadata |
| Maintain Nango connection tags and metadata for routing, attribution, and app configuration. |
Connect sessions |
| Create hosted Connect or reconnect links for users to authorize or repair provider access. |
Proxy |
| Call a provider API through Nango Proxy without exposing provider OAuth tokens to the agent. |
Conventions |
| Generate and audit optional tag/metadata conventions for cleaner multi-client operations. |
Read tools redact credential-like fields from Nango management API responses. Mutating tools are available by default; set NANGO_MCP_READ_ONLY=true for inspection-only installs, or enable NANGO_MCP_REQUIRE_CONFIRMATION=true if your deployment needs an extra phrase-based guard.
proxy_request accepts provider-relative paths such as /v1.0/me; do not include /proxy. It intentionally returns provider response data, because that is the requested data plane.
Tags And Metadata
This project follows Nango's public guidance:
Use tags for attribution, filtering, routing, and webhook reconciliation.
Recommended tags:
end_user_id,end_user_email,organization_id.Optional routing tags:
workspace_id,project_id,environment.Use metadata for application/function configuration.
Do not store credentials in tags or metadata.
The optional convention helpers can generate tags and metadata under metadata.nango_mcp by default. Change that namespace with NANGO_MCP_METADATA_NAMESPACE.
Development
python -m pytest -qSecurity
Please do not open public issues containing Nango secret keys, provider OAuth tokens, Infisical credentials, customer data, or raw provider API responses. If you need to report a sensitive issue, use a private disclosure channel instead of a public issue.
License
MIT. Attribution is appreciated and preserved in the license.
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/LevSky22/nango-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server