Nango Server
FreeNot checkedMCP server for managing Nango environments, integrations, connections, and proxy requests. Provides tools for environment checks, integration management, connec
About
MCP server for managing Nango environments, integrations, connections, and proxy requests. Provides tools for environment checks, integration management, connection handling, Connect sessions, and provider API calls through Nango Proxy.
README
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-mcp
uvx 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.git
Then your MCP client can use:
nango-mcp
For 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-mcp
Configuration
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 .env
If 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/.env
Single environment:
NANGO_BASE_URL=https://api.nango.dev
NANGO_ENVIRONMENT=default
NANGO_SECRET_KEY=nango_secret_key_here
Finding 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,production
Optional settings:
NANGO_MCP_REQUEST_TIMEOUT=20
NANGO_MCP_METADATA_NAMESPACE=nango_mcp
NANGO_MCP_READ_ONLY=false
NANGO_MCP_REQUIRE_CONFIRMATION=false
Set 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_KEY
For 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-mcp
Or 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-mcp
If 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 | list_environments, check_environment |
Show configured Nango environments and verify a secret can be resolved without returning it. |
| Integrations | list_integrations, get_integration, search_provider_templates, create_integration, update_integration, delete_integration |
Inspect provider integrations, find Nango provider templates, and manage integration definitions. |
| Connections | list_connections, get_connection, get_connection_context, import_connection, delete_connection |
Inspect, summarize, import, or remove authorized provider connections. |
| Tags and metadata | patch_connection_tags, set_connection_metadata |
Maintain Nango connection tags and metadata for routing, attribution, and app configuration. |
| Connect sessions | create_connect_session, create_standard_connect_session, create_reconnect_session |
Create hosted Connect or reconnect links for users to authorize or repair provider access. |
| Proxy | proxy_request |
Call a provider API through Nango Proxy without exposing provider OAuth tokens to the agent. |
| Conventions | describe_connection_convention, build_connection_convention, apply_connection_convention, audit_connection_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.
When using update_integration to change OAuth scopes, pass scopes under credentials.scopes. The MCP also accepts top-level scopes, oauth_scopes, or default_scopes as operator-friendly aliases and normalizes them into the official Nango payload shape. Scope updates preserve existing integration credential fields internally when Nango returns them through include=credentials; if those values are unavailable, provide the credential fields in the request. By default, the MCP auto-creates a reconnect session when exactly one existing connection matches the updated integration. Pass reconnect_connection_ids when the affected connection ids are known or when an integration has multiple connections.
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.
For Nango Proxy calls that need a provider host override, pass base_url_override to proxy_request. The server forwards it as Nango's raw base-url-override control header. Ordinary provider headers still belong in headers and are forwarded as nango-proxy-* headers. This matters for provider families where one connection can call multiple hosts, such as a generic Google integration calling sheets.googleapis.com instead of its default Google API host.
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
Source code lives in src/nango_mcp/: the public package/CLI name uses hyphens (nango-mcp), while the Python import package uses underscores (nango_mcp). The root server.py is only a source-checkout launcher; installed MCP clients should use the nango-mcp console script.
python -m pytest -q
Security
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.
Installing Nango Server
This server has no published package — it is built from source. Open the repository and follow its README.
▸ github.com/LevSky22/nango-mcp-serverFAQ
Is Nango Server MCP free?
Yes, Nango Server MCP is free — one-click install via Unyly at no cost.
Does Nango Server need an API key?
No, Nango Server runs without API keys or environment variables.
Is Nango Server hosted or self-hosted?
A hosted option is available: Unyly runs the server in the cloud, no local setup required.
How do I install Nango Server in Claude Desktop, Claude Code or Cursor?
Open Nango Server on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
GitHub
PRs, issues, code search, CI status
by GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
by mcpdotdirectCompare Nango Server with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All development MCPs
