relic mcp to start the server over stdio.
Setup
You must be authenticated before using the MCP server. Runrelic login if you haven’t already.
Cursor
Add this to.cursor/mcp.json in your project root or global Cursor settings. This applies to both Cursor IDE and Cursor CLI.
Claude Code
~/.claude.json. To scope it to the current project, add the --scope project flag:
Codex
Run the CLI command:~/.codex/config.toml (global) or .codex/config.toml (project-scoped):
Zed
Add this to your Zedsettings.json:
Zed supports MCP Tools and Prompts only. Resources and Sampling are not yet implemented.
OpenCode
Add this to youropencode.jsonc or opencode.json:
Claude Desktop
Add this toclaude_desktop_config.json:
Available Tools
whoami
Returns the authenticated user’s name, email, and plan.
list-projects
Lists all projects (owned and shared) with their environments and folders.
list-secrets
Lists secret key names, and scopes for a given project environment.
get-current-project
Reads relic.toml from the current directory and returns the project ID and config path. Useful for the AI to understand which project it’s working in.
run-with-secrets
Runs a command with decrypted secrets injected as environment variables. Returns the command’s exit code, stdout, and stderr, with secret values redacted on a best-effort basis.
- Redaction: every decrypted secret value of 4 or more characters is replaced with
[REDACTED:KEY]in stdout and stderr before the output is returned. - Env-dump gate: bare
env/printenv/set, shell prefixes (exec/command/builtin), process wrappers (nice/stdbuf/busybox), alternate builtins (export -p,declare -x/-p,typeset -x,compgen -e),/proc/*/environ, PowerShellEnv:listings, and opaque PowerShell-EncodedCommand(including insidesh -c/pwsh -c) are refused unlessallowDangerousEnvDumpistrue.env FOO=bar cmdis still allowed. - Credentials: the command inherits the MCP server’s environment minus all
RELIC_*variables, soRELIC_PASSWORD,RELIC_API_KEY, andRELIC_SERVICE_TOKENare not visible to it. - Limits: each stream is capped at 50,000 characters. On timeout the command (and its child processes) is killed and the partial output is returned with
timedOut: true.
Security Model
The MCP server inherits Relic’s client-side encryption. All decryption happens locally on your machine, and the server communicates with the AI assistant over stdio (no network exposure).Example Usage
Once configured, you can ask your AI assistant things like:- “What secrets are in my production environment?”
- “List all my Relic projects”
- “Run my test suite with staging secrets”
- “Which project is this directory linked to?”