New Relic MCP server for observing AI coding assistants (Claude Code, Cursor, Copilot, etc.)
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Observability for AI Coding Assistants
Docs β’ What's New β’ Examples β’ Community β’ Contributing
Your AI coding assistant makes hundreds of decisions every session β what to read, what to edit, when to run commands. But you can't see any of it. You know it was fast, but was it efficient? You got a PR merged, but how much did it cost? You fixed a bug, but did it get stuck in a loop first?
Preflight is observability for agentic coding β the actions, cost, and efficiency of your AI coding assistant as it works. See exactly what's happening, how much it costs, and where your AI is wasting time.
Local-first by design. Preflight runs entirely on your machine and sends your data nowhere by default. A live dashboard at localhost:7777 shows your sessions in real time, fully offline. Connect a New Relic account only when you want more β team rollups, alerting, and cross-session history. You choose: local-only, New Relic, or both.

See cost breakdown, efficiency scoring, anti-patterns, and live session tracking in action.
localhost:7777, no account requiredUsing Smithery? Installing Preflight from the Smithery MCP registry wires up the MCP server for you, but Smithery has no mechanism to write Claude Code hooks. After install, ask Claude Code to call the
nr_observe_install_hooksMCP tool (it will offer to do this automatically oncenr_observe_healthreportssetup_required: true), then restart Claude Code to activate monitoring.
The wizard defaults to local mode β press Enter through the prompts and you're set. It wires Preflight into your AI tool (hooks + MCP server) and writes config to ~/.newrelic-preflight/. Takes under a minute, no account required.
Using GitHub Copilot? The wizard also asks to install Copilot hooks β saying yes configures both the Copilot CLI and VS Code Copilot Chat automatically (hooks, MCP registration, and the fix for VS Code's hook double-capture), so Copilot gets the same tool-call and cost metrics Claude Code does. Run it standalone anytime with
preflight install --copilot. See docs/ADAPTERS.md for details.
When prompted, pick a mode:
| Mode | What it does | New Relic account? |
|---|---|---|
| local (default) | Everything stays on your machine; live dashboard at localhost:7777 | Not needed |
| cloud | Ships telemetry to New Relic | Required |
| both | Local dashboard and New Relic | Required |
Restart your AI tool β hooks and the MCP server load at session start. Every tool call is captured automatically. Open http://localhost:7777 to watch your session live.
Using Kiro? Add Preflight as a Kiro Power for the
nr_observe_*query tools β see the doc for install steps and how to add automatic tool-call capture on top.
Using Claude Code? You can skip the npm install above and add Preflight as a Claude Code plugin instead:
Cursor β Add to Cursor installs the MCP server via a one-click deeplink; run preflight setup afterwards for hook capture.
Claude Code β’ Cursor β’ Windsurf β’ GitHub Copilot β’ Zed β’ Continue.dev β’ Amazon Q Developer β’ Amazon Kiro
Coverage isn't uniform β some platforms capture every built-in tool call, others (Zed, Continue.dev) only see calls routed to Preflight's own MCP tools. See ADAPTERS.md for what each platform can and can't observe, and per-platform setup steps.
Local mode is fully featured on its own. Connect a New Relic account to unlock:
Re-run preflight setup and choose cloud or both, or configure it non-interactively:
EU accounts add --eu. FedRAMP accounts add --fedramp. Japan accounts add --jp.
Then deploy the prebuilt dashboards:
You'll need a license key (telemetry ingest) and your account ID, plus a user API key (NRAK-β¦) to deploy dashboards and alerts. See ADVANCED.md for alerts, OTLP export to other backends, and Terraform.
No dashboard until you run
deploy-dashboards. Cloud mode ships telemetry to New Relic as soon as it's configured, but nothing creates a dashboard automatically β that's the separate step above, and it needs a different credential (a user API key, not your license key). Until you run it, there's no UI to look at. In the meantime, query the raw events directly in New Relic's Query Builder, e.g.:Once
deploy-dashboardssucceeds, find the dashboards under your New Relic account's Dashboards section.
Data ingest note: Telemetry sent to New Relic counts against your account's data ingest. On paid plans, standard ingest rates apply. Monitor your usage under NR One β Data Management β Data Ingestion.
cloud/both mode. Skip it to run local-only (the default).NRAK-β¦) β only needed to deploy dashboards and alertsAdd --project to install/uninstall to scope changes to the current directory only.
WSL users: preflight setup will ask which Claude Code you're running. You can also set it explicitly:
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/preflight-4)<a href="https://allmcps.com/mcp/preflight-4"><img src="https://allmcps.com/api/badge/preflight-4?style=directory" alt="Preflight on AllMCPs" /></a>