Use Netwarden from your AI agent (MCP)
Connect Claude Code, Cursor, Windsurf or VS Code to Netwarden over MCP, so your agent can check your sites, read what is wrong and set up monitoring
Use Netwarden from your AI agent (MCP)
Netwarden is an MCP server. Once connected, the AI agent you code with can ask Netwarden what is wrong with your servers and sites, scan an address before you deploy it, and set up checks and alerts for you.
The server's address is:
https://api.netwarden.com/api/mcp
It speaks MCP over HTTP and signs you in with a token you create in Netwarden.
Claude.ai, ChatGPT and other apps that sign in
Apps that support MCP with sign-in (OAuth) need no token. Add a custom connector with the address https://api.netwarden.com/api/mcp; the app sends you to Netwarden to sign in and choose what it may do, then back. The connection shows under Settings › AI agents, where you can disconnect it.
For tools that take a token instead, follow the steps below.
1. Create a token
In Netwarden, open Settings › AI agents and create a token. Give it a name you will recognize later, such as "Claude Code on my laptop", and choose what it may do:
- Read only: the agent can look, but changes nothing.
- Read, and change after confirming: the agent can also propose changes. Nothing changes until you say yes (see below).
The token is shown once. Copy it straight into your agent's setup. A token belongs to you: anything an agent changes with it is recorded under your name in the activity log. Revoke it on the same page and it stops working at once.
2. Connect your agent
The Settings page fills your token into these for you.
Claude Code
Run in a terminal:
bashclaude mcp add --transport http netwarden https://api.netwarden.com/api/mcp --header "Authorization: Bearer YOUR_TOKEN"
Cursor
In ~/.cursor/mcp.json:
json{ "mcpServers": { "netwarden": { "url": "https://api.netwarden.com/api/mcp", "headers": { "Authorization": "Bearer YOUR_TOKEN" } } } }
Windsurf
In ~/.codeium/windsurf/mcp_config.json:
json{ "mcpServers": { "netwarden": { "serverUrl": "https://api.netwarden.com/api/mcp", "headers": { "Authorization": "Bearer YOUR_TOKEN" } } } }
VS Code
In .vscode/mcp.json in your project:
json{ "servers": { "netwarden": { "type": "http", "url": "https://api.netwarden.com/api/mcp", "headers": { "Authorization": "Bearer YOUR_TOKEN" } } } }
Keep .vscode/mcp.json out of git if it holds the token.
What your agent can do
| Tool | What it does |
|---|---|
| account_summary | Your plan, and how many hosts, sites and open findings you have |
| list_hosts | Your servers and checks, with their status |
| list_host_metrics | The latest CPU, memory, disk and other numbers for one host |
| list_alerts | Alerts firing now |
| list_findings / get_finding | Security findings, and the detail and fix for one |
| get_fix_prompt | A finding as a prompt for Lovable, Bolt, Replit, v0, Cursor, Claude Code or Windsurf |
| list_web_apps / get_web_app | The web apps you watch, with their App Health Score |
| scan_url / get_scan_result | Scan a public address and read the result |
| get_report | The security and health report for a period: findings, uptime, incidents, coverage |
| install_command | The command that installs the agent on a server |
| create_alert | Alert on a metric of a host |
| create_uptime_check | Check that a site or port answers |
| watch_app | Watch a verified site as a web app |
Two prompts come with it: check_before_deploy (scan a site and explain what to fix first) and set_up_monitoring (walk through monitoring a server or a site).
Changes wait for you
The last three tools change your account, so they work in two steps. The first call changes nothing: Netwarden answers with the change in plain words, such as "Create an alert on web-01 when disk usage is above 90%". Your agent shows you that and asks. Only when you agree does it call the tool again to make the change. A read-only token cannot make changes at all.
Ask it things like
- "Use Netwarden to check https://my-app.example.com before I deploy, and tell me what to fix first."
- "Which of my servers is running out of disk?"
- "What are my critical security findings, and how do I fix the first one in this repo?"
- "Set up an uptime check for my site and alert me if it goes down."
Tell your agent about Netwarden in the project
Add this to CLAUDE.md, AGENTS.md or .cursorrules so the agent checks before it ships:
markdown## Netwarden This project is monitored by Netwarden (MCP server "netwarden"). - Before deploying, run the check_before_deploy prompt on the production URL and fix anything critical or high first. - When a change adds a public endpoint, port or subdomain, suggest an uptime check for it.
Limits
Each token can make 120 requests a minute. If a token stops working, it was revoked or its user was removed: create a new one in Settings › AI agents.