Skip to content
MCP server
Registry

preflight MCP Server

New Relic MCP server for observing AI coding assistants (Claude Code, Cursor, Copilot, etc.)

preflight scores 74 (Good), licensed Apache-2.0 and written in TypeScript. It installs as a local process. It does not declare tools yet. Filed under Monitoring. GitHub shows 69 stars. Package registries report about 1,405 downloads a week. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.

by newrelic-experimentalApache-2.0TypeScript69 stars
Trust score
74Good
Trust score 74 of 100, Good

Good trust

74 of 100 from six public signals. Nobody can buy a point.

  • Listed in the official MCP registry.
  • OSI-style license: apache-2.0.
How we score trust
Scorecard

License, quality and maintenance

How grades work
  • License: Grade A

    Apache-2.0 is a permissive open source license.

    How license is graded
  • Quality: Grade C

    60/100 for listing completeness. Lost points: no listed tools, short summary, no docs link.

    How quality is graded
  • Maintenance: Grade B

    Last commit or release today. Down one letter for 97 open issues against 69 stars.

    How maintenance is graded
Trust breakdown

Where the 74 comes from

22 + 20 + 11 + 10 + 4 + 7 = 74. Each factor is capped, so no single signal can carry a listing.

Registry22 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 22 of 30 points.
Maintenance20 / 20

How recently the repository saw a commit or release.

Maintenance: 20 of 20 points.
Popularity11 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 11 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security4 / 10

Not archived, a secure install path, a pinned version.

Security: 4 of 10 points.
Docs7 / 10

A real summary, a README with depth, listed tools.

Docs: 7 of 10 points.

Install

Pick your client, copy the config, paste it in.

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "newrelic-experimental-preflight": {      "command": "npx",      "args": [        "-y",        "@newrelic/preflight@1.78.0"      ],      "env": {        "NEW_RELIC_LICENSE_KEY": "YOUR_NEW_RELIC_LICENSE_KEY",        "NR_AI_MODE": "",        "NEW_RELIC_ACCOUNT_ID": ""      }    }  }}

Environment variables

NameRequiredNotes
NEW_RELIC_LICENSE_KEYSecretOptionalNew Relic ingest license key. Optional: while NR_AI_MODE is unset or local, Preflight runs local-only with the dashboard at localhost:7777. A license key with no mode set by NR_AI_MODE or the config file makes the server fail to start.
NR_AI_MODEOptionalWhere telemetry goes: "cloud" (New Relic only), "both" (New Relic plus the local dashboard) or "local". Required when NEW_RELIC_LICENSE_KEY is set, unless the config file sets a mode. cloud turns off the local dashboard and local alerts.
NEW_RELIC_ACCOUNT_IDOptionalNew Relic account id. Required when NR_AI_MODE is cloud or both; also used for dashboard and alert deployment.

Tools show up when the registry metadata or the repository README lists them. Public READMEs are read directly. A GitHub token is used only when one is already configured.

About

License Node 22+ Local First Dashboards Included

Docs • What's New • Examples • Community • Contributing


Why Your AI Tool Needs Observability

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.

Cost and AI activity, not productivity. Preflight reports what AI coding costs and what the assistant did. In New Relic mode, the Adoption & Cost dashboard shows AI activity signals, such as tasks per developer and PRs the assistant created or merged. These signals are not a measure of developer or team productivity, which is out of scope, because a session has no link to a ticket and Preflight misses work done outside the assistant, such as a merge on GitHub. nr_observe_get_cost_per_outcome splits cost by inferred task type, and its ROI estimate comes from fixed hours-saved assumptions, not measured time.


Demo

Preflight dashboard animation

See cost breakdown, efficiency scoring, anti-patterns, and live session tracking in action.


What You Get

Visibility

  • Every action captured — file reads, edits, commands, searches
  • Live session dashboard — see what's happening right now
  • Historical trends — analyze patterns over weeks and months

Cost Control

  • USD spend tracking — per session, day, and week
  • Per-model and cache breakdown — know which models cost most and how efficiently context is reused
  • Budget alerts — get notified before you overspend
  • Forecasting — project monthly burn rate

Efficiency Insights

  • Efficiency score — 0–100 score per task, based on how directly the AI worked
  • Anti-pattern detection — catches re-reads, blind edits, stuck loops
  • Personalized recommendations — optimize your AI workflow
  • Weekly coaching reports — narrative analysis vs. your historical baseline

Dashboards

  • Local dashboard — live session view at localhost:7777, no account required
  • 8 pre-built New Relic dashboards — deploy in seconds (New Relic mode):
    • Overview — session stats, cost summary, top tools
    • Personal — 30-day self-reflection scoped to you
    • Session Detail — deep-dive into a single session's tool calls
    • Team View — aggregated cost and efficiency across developers
    • Manager View — high-level team metrics, no tool-call content
    • Adoption & Cost — adoption momentum, spend, skill and MCP usage, and per-developer activity for engineering managers
    • Platform Comparison — Claude Code vs. Cursor vs. Windsurf, etc.
    • Security Audit — audit trail of sensitive file access

Quick Start

1. Install

npm install -g @newrelic/preflight

Using 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, either run preflight install in a terminal, or set "allowHeadlessInstall": true in your Preflight config (or NEW_RELIC_AI_ALLOW_HEADLESS_INSTALL=true) and ask Claude Code to call the nr_observe_install_hooks MCP tool. The tool refuses by default, because any connected MCP client can call it. With the flag on, it offers to do this automatically once nr_observe_health reports setup_required: true. Then restart Claude Code to activate monitoring.

2. Run setup

preflight setup

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:

ModeWhat it doesNew Relic account?
local (default)Everything stays on your machine unless usage reports are on; live dashboard at localhost:7777Not needed
cloudShips telemetry to New RelicRequired
bothLocal dashboard and New RelicRequired

The wizard's last question is whether to share usage reports with the Preflight team at New Relic: a daily count of how you use Preflight, identified only by a random install ID. Nothing is sent unless you say yes, or an administrator turns reports on for you. preflight usage-reports show, or Settings in the dashboard, shows exactly what would be sent and what has been. PRIVACY.md lists every field.

3. Start coding

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:

/plugin marketplace add newrelic-experimental/preflight
/plugin install newrelic-preflight@newrelic-preflight-marketplace

Other ways to install

Cursor — Add to Cursor installs the MCP server via a one-click deeplink; run preflight setup afterwards for hook capture.

Homebrew (macOS):

brew tap newrelic-experimental/preflight
brew trust newrelic-experimental/preflight
brew install preflight

Run preflight setup afterwards for hook capture.


Works With

Claude Code • Amazon Kiro • Amazon Q Developer CLI • Factory Droid • OpenAI Codex • opencode • Kilo Code • Pi • GitHub Copilot • GitHub Copilot SDK • GitHub Copilot app • Google Gemini CLI • Cursor • Windsurf • Google Antigravity • Zed • Continue.dev • Cline

Coverage isn't uniform — some platforms capture every built-in tool call, others (Zed, Continue.dev, Cline) 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.


Connect New Relic (optional)

Local mode is fully featured on its own. Connect a New Relic account to unlock:

  • Team & manager dashboards across multiple developers
  • Alerting on cost spikes, low efficiency, and stuck loops
  • Cross-session history, trends, and weekly coaching reports

Re-run preflight setup and choose cloud or both, or configure it non-interactively:

preflight install \
  --mode cloud \
  --license-key YOUR_LICENSE_KEY \
  --account-id YOUR_ACCOUNT_ID

EU accounts add --eu. FedRAMP accounts add --fedramp. Japan accounts add --jp.

A key passed with --license-key is visible to every local user through ps. For scripts, read it from a file instead (--license-key-file ~/.nr-key, which warns if other users can read the file) or set NEW_RELIC_LICENSE_KEY and NEW_RELIC_ACCOUNT_ID in the environment. The flag wins over the file, and the file wins over the environment. The environment is used only when config.json has no stored licenseKey or licenseKeyCommand, so a shell that already exports these variables for an APM agent never overwrites your stored key. To replace a stored key, pass --license-key-file. With --copilot, the key is still handed to copilot mcp add as an argument, so it is briefly visible in ps for that one call.

Then deploy the prebuilt dashboards:

NEW_RELIC_API_KEY=NRAK-... NEW_RELIC_ACCOUNT_ID=12345 \
  preflight deploy-dashboards --all

You'll need a license key (telemetry ingest). To deploy dashboards and alerts you also need your account ID and a user API key (NRAK-…). 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.:

SELECT * FROM AiToolCall SINCE 1 hour ago

Once deploy-dashboards succeeds, 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.


Requirements

Required

  • Node.js v22 or higher (get it or use nvm)
  • An AI coding tool (Claude Code recommended for deepest integration)

Optional

  • New Relic account — only for cloud/both mode. Skip it to run local-only (the default).
  • User API key (NRAK-…) — only needed to deploy dashboards and alerts

Other Commands

preflight doctor               # Run 10 diagnostic checks and print actionable fix commands
preflight validate             # Check config for syntax errors and unknown keys
preflight update               # Pull latest version, rebuild, and offer to restart a running dashboard (source installs only — npm installs: npm install -g @newrelic/preflight@latest; Homebrew installs: brew upgrade preflight)
preflight local                # List running --local dashboard processes and live --stdio MCP processes
preflight local --clean        # Kill orphaned --local processes and --stdio processes with a missing binary (prompts for confirmation)
preflight uninstall            # Remove hooks and MCP config (prompts with a summary first)
preflight uninstall --yes      # Skip the confirmation prompt (for scripts and CI)
preflight uninstall --daemon   # Remove only the background dashboard daemon
preflight usage-reports status # Whether usage reports are on, and why
preflight usage-reports show   # Print exactly what usage reports send, and what they've sent

Add --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:

  • --windows-cc — Windows Claude Code (the desktop app); uses wsl.exe hooks and Windows paths
  • --linux-cc — Linux Claude Code installed via npm inside WSL

Documentation

  • ADVANCED.md — Configuration, dashboards, alerts, Terraform
  • SCORECARDS.md — New Relic Scorecard rules for team attribution
  • ARCHITECTURE.md — Data flow, component reference, and operating modes
  • ADAPTERS.md — Per-platform integration mechanism, setup steps, and known gaps
  • FLEET_DEPLOYMENT.md — Roll out the Claude Code plugin to many machines with managed settings and MDM
  • TROUBLESHOOTING.md — Common setup and connection problems, and how to fix them
  • CONTRIBUTING.md — Development, testing, submitting PRs
  • SECURITY.md — Security guidelines and best practices
  • PRIVACY.md — Data collection inventory and pre-cloud checklist
  • COMPLIANCE.md: for security reviews, the data flow from the developer machine to New Relic, the controls at each hop, the New Relic certifications that cover stored data (such as SOC 2 and ISO 27001), and a security FAQ

From Source

Develop, test, or run the latest unreleased version:

git clone https://github.com/newrelic-experimental/preflight
cd preflight
nvm use              # Switch to Node v24
npm ci               # Install dependencies from the lockfile
npm run build        # Build the server and the dashboard bundle
npm link             # Register preflight on PATH

Then run preflight setup as usual.


License

Preflight is open source under the Apache License 2.0.


Contributing

We welcome contributions! See CONTRIBUTING.md for how to get started. Join the New Relic Community to share ideas, ask questions, or discuss features.


Frequently asked questions

What is preflight MCP Server?

New Relic MCP server for observing AI coding assistants (Claude Code, Cursor, Copilot, etc.)

How do I install preflight MCP Server in Claude Desktop, Cursor, or VS Code?

Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. preflight MCP Server runs locally from the npm package @newrelic/preflight with the command npx -y @newrelic/preflight@1.78.0.

Is preflight MCP Server free and open source?

Yes. preflight MCP Server is released under the Apache-2.0 license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.

Does preflight MCP Server support remote (HTTP) connections?

No remote endpoint is listed for preflight MCP Server. It runs locally on your machine over stdio, started by your MCP client.

How is preflight MCP Server's trust score calculated?

preflight MCP Server scores 74 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.

Reviews

No reviews yet

—Be the first to review

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server