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 stdout, stderr, and exit code.
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?”