Skip to main content

What is MCP Integration?

Model Context Protocol (MCP) is an open protocol that allows AI assistants to connect with external tools and data sources. NOFire AI’s MCP integration brings complete production Knowledge directly into your development environment. With MCP, you can: Shift-Left (Before Deployment):
  • Assess deployment risk before merging code
  • Analyze blast radius of your changes
  • Identify critical services affected by your work
  • Get deployment strategy recommendations
Production Knowledge (Anytime):
  • Query production environment in natural language
  • Understand service dependencies and relationships
  • See what changed recently in any service
  • Investigate production behavior and incidents
  • Onboard new engineers by making production knowledge accessible
No dashboard switching. No context loss. All from your IDE.

Supported IDEs

NOFire AI MCP integration works with:

Cursor

Full integration with AI-powered code editor

Claude Desktop

Direct integration with Anthropic’s Claude Desktop app

MCP-Compatible Tools

Any tool supporting Model Context Protocol

Prerequisites

Before setting up MCP integration, ensure you have:
1

NOFire AI Account

You need a NOFire AI account with connected infrastructure
2

Data Sources Connected

Connect your observability stack (Grafana, Prometheus, Datadog) OR deploy the NOFire AI Kubernetes agent to build the knowledge graphSetup guide
3

MCP API Token

Generate an MCP-specific API token from your NOFire AI dashboardAPI token guide
4

MCP-Compatible IDE

Install Cursor, Claude Desktop, or another MCP-compatible tool

Installation

Cursor Setup

1

Open Cursor Settings

There are two ways to configure MCP in Cursor:Option 1: Via Cursor Settings UI
  1. Open Cursor Settings (Cmd/Ctrl + ,)
  2. Search for “MCP” in the settings search bar
  3. Look for “Model Context Protocol” section
  4. Click “Edit in mcp.json” or “Configure”
Option 2: Edit Config File DirectlyNavigate to the MCP configuration file:
  • macOS: ~/.cursor/mcp.json
  • Linux: ~/.cursor/mcp.json
  • Windows: %APPDATA%\.cursor\mcp.json
If the file doesn’t exist, create it.
2

Add NOFire AI Configuration

Add the following configuration to your mcp.json file:
If you already have other MCP servers configured, add NOFire AI to the existing mcpServers object:
Important: Replace your-mcp-api-key-here with your actual MCP API token from the NOFire AI dashboard.Generate your API token →
3

Save and Restart Cursor

  1. Save the mcp.json file
  2. Completely quit Cursor (File → Quit or Cmd/Ctrl + Q)
  3. Restart Cursor
A simple window reload is not enough - you must fully quit and restart Cursor for MCP changes to take effect.
4

Verify NOFire AI is Connected

In Cursor’s AI chat panel, you should see MCP servers listed. Verify NOFire AI appears.Test the connection:Ask Cursor:
Or:
Expected behavior:
  • Cursor will call NOFire AI MCP server
  • You’ll see results about your services or deployment risk
  • If there’s an error, check the troubleshooting section below

Cursor Settings Tips

Check MCP Status
  • Look for the MCP icon in Cursor’s status bar (bottom of window)
  • Click it to see which MCP servers are active
  • NOFire AI should appear in the list with a green indicator
Enable Detailed Logging To debug connection issues, enable verbose logging in Cursor settings:
  1. Open Settings → Advanced
  2. Enable “Developer Mode” or “Debug Logging”
  3. Check logs in Cursor’s developer console

Claude Desktop Setup

1

Locate Claude Desktop Config File

Find and open Claude Desktop’s MCP configuration file:macOS:
Windows:
Linux:
If the file doesn’t exist, create it with an empty JSON object:
2

Add NOFire AI Configuration

Add NOFire AI to the mcpServers section:If starting fresh:
If you have existing servers:
Important: Replace your-mcp-api-key-here with your actual MCP API token.Generate your API token →
3

Validate JSON Syntax

Before saving, ensure your JSON is valid:
  • Check that all brackets {} and braces [] are closed
  • Ensure commas between properties (but not after the last one)
  • All strings must be in double quotes ""
Use a JSON validator if needed:
4

Save and Restart Claude Desktop

  1. Save the configuration file
  2. Completely quit Claude Desktop:
    • macOS: Claude → Quit Claude (or Cmd + Q)
    • Windows: File → Exit
    • Linux: File → Quit
  3. Restart Claude Desktop
Claude Desktop only reads the config file on startup. A full restart is required.
5

Verify NOFire AI is Available

In a new conversation with Claude, you should see MCP tools available.Test the connection:Ask Claude:
Or:
Expected behavior:
  • Claude will indicate it’s using NOFire AI tools
  • You’ll see results from your production environment
  • If there’s an error, see troubleshooting below

Claude Desktop Settings Tips

Check MCP Status
  • Claude shows available tools at the bottom of the chat interface
  • Look for indicators that NOFire AI tools are loaded
  • If not visible, check the developer console for errors
Enable Developer Tools To debug issues:
  1. Open Claude Desktop Settings
  2. Look for “Developer” or “Advanced” options
  3. Enable developer tools/console
  4. Check for any MCP-related errors
File Permissions Ensure the config file has proper permissions:

Available Tools

Once configured, these tools are available to your AI assistant:

Shift-Left / Proactive Reliability

Score deployment risk for a service before merging:Example:
Uses nofire_assess_deployment_risk to calculate a weighted risk score (0-100) based on blast radius, dependency depth, incident history, and recent change velocity.Risk levels: LOW (0-39), MEDIUM (40-59), HIGH (60-79), CRITICAL (80-100).
Understand cascading impact of service failures:Example:
Uses nofire_analyze_blast_radius to traverse the dependency graph and show direct + transitive impact.
Get a cluster-wide health overview when you don’t know where to start:Example:
Uses nofire_get_cluster_summary to show entity counts, top problematic services, and recent alert investigations.

Incident Response & RCA

Find services, pods, deployments in your cluster:Example:
Uses nofire_search_entities with partial name matching.
View recent infrastructure changes and correlated VCS activity (commits, PRs):Example:
Uses nofire_get_entity_changes which returns deployments, config updates, scaling events, plus merged PRs and pushes in the same time window.
See cluster-wide deploy and change timeline:Example:
Uses nofire_get_recent_deploys to show a chronological timeline of infra changes + VCS events across the cluster.
Explore service dependencies:Example:
Uses nofire_get_entity_dependencies to show upstream and downstream connections.

Usage Examples

Pre-Merge Risk Assessment

Scenario: You’ve modified payment processing code and want to assess risk before creating a PR. In Cursor:
Cursor Response:

Onboarding New Engineers

Scenario: New team member needs to understand the production architecture. In Cursor:
Cursor Response:

Investigating Production Behavior

Scenario: A service has been flaky, you want to understand what changed. In Claude Desktop:
Claude Response:

Best Practices

Make it a habit to check deployment risk before creating or approving PRs. Takes 10 seconds, prevents hours of incident response.
New team members can ask NOFire AI about production:
  • “What services do we have in production?”
  • “How does auth-service connect to user-service?”
  • “What changed in payment-service this week?”
Makes production knowledge accessible without tribal knowledge bottlenecks.
Provide context about what you’re doing:❌ “Check risk” ✅ “I’m updating payment API error handling. What’s the deployment risk?”❌ “What changed?” ✅ “What changed in auth-service in the last 24 hours?”
When something breaks, ask NOFire AI:
  • “What changed in [service] before the incident?”
  • “Analyze [service] changes from 2 hours ago”
  • “What services depend on [broken-service]?”
Speeds up incident response by making telemetry data queryable.
When you discover critical dependencies or high-risk services, document them. Share what NOFire AI teaches you about production.

Troubleshooting

Symptoms: Commands timeout or show connection errorsFor Cursor:
  1. Check the MCP status icon in the bottom status bar
  2. Verify JSON syntax in ~/.cursor/mcp.json is valid
  3. Ensure you fully quit and restarted Cursor (not just reload)
  4. Check API token is correct and active in NOFire AI dashboard
  5. Test connectivity: curl https://mcp.nofire.ai/mcp/health
  6. Look for errors in Cursor’s developer console (Help → Toggle Developer Tools)
For Claude Desktop:
  1. Validate JSON syntax in claude_desktop_config.json
  2. Ensure file path is correct for your OS
  3. Check file permissions (should be readable)
  4. Verify API token is active in dashboard
  5. Check Claude’s developer console for error messages
  6. Try removing and re-adding the configuration
Symptoms: MCP servers not loading, IDE shows config errorsCommon mistakes:Missing comma between servers:
Correct:
Validate your JSON:
  • Use an online JSON validator
  • Use command line: python3 -m json.tool yourfile.json
  • Most code editors have built-in JSON validation
Symptoms: “Invalid API token” or “Unauthorized” errorsChecklist:
  1. Copy the API token correctly (no extra spaces or line breaks)
  2. Ensure you copied the MCP key (not agent key)
  3. Verify key is active in NOFire AI dashboard
  4. Check key hasn’t been deleted or deactivated
  5. Make sure quotes are proper JSON double quotes ""
Test connectivity (no auth needed):
Test your API token:
If the health check works but auth fails, regenerate your API token in the dashboard.
Symptoms: Can’t find mcp.json or claude_desktop_config.jsonSolutions:For Cursor: Create the directory and file if they don’t exist:
For Claude Desktop:
Symptoms: “No entities found” or empty resultsSolutions:
  1. Ensure your data sources are connected:
    • If using observability stack: Verify Grafana/Prometheus/Loki connections are active
    • If using Kubernetes agent: Ensure agent is deployed and running
  2. Wait 5-10 minutes for initial data collection and knowledge graph building
  3. If using agent: Verify it has correct cluster access
  4. Check connection logs for errors in the NOFire AI dashboard
Symptoms: Files mapped to wrong services or not mapped at allSolutions:
  1. Use repository-qualified paths (include repo name)
  2. Ensure service names match deployment labels
  3. Check if service was recently deployed (< 1 hour)
  4. Fuzzy matching requires similar naming between files and services
Symptoms: “MCP keys are read-only” errorIssue: You’re trying to perform a write operation with an MCP keySolution: MCP keys are intentionally read-only for security. Write operations (like creating new services) require agent keys through the dashboard.

Security Considerations

MCP keys are read-only by designMCP API tokens can only query and analyze data from NOFire AI. They cannot:
  • Modify your production infrastructure
  • Trigger deployments or rollbacks
  • Create or delete Kubernetes resources
  • Change system configurations
  • Execute commands in your clusters
This ensures your production environment remains completely safe even if an MCP key is compromised. The Kubernetes agent that observes your infrastructure state runs separately with its own authentication.
Learn more about API token types and permissions.

Bonus: Automate with AGENTS.md

Make NOFire AI checks automatic by adding them to your AGENTS.md file. This ensures AI coding agents always use NOFire AI for deployment risk and operational knowledge. Create or update AGENTS.md in your repository root:
Why this works:
  • Works with Cursor, GitHub Copilot, Jules, Aider, and most AI coding agents
  • Makes shift-left and operational knowledge automatic
  • Entire team follows same safety checks and has access to production knowledge

What’s Next?

API Tokens Management

Learn how to generate and manage MCP API tokens

Proactive Reliability

Deep dive into shift-left reliability features

Security

Understand our security-first approach

AGENTS.md Guide

Learn more about the AGENTS.md format