Create and manage architecture diagrams from Claude Code, Cursor, Windsurf, or any MCP-compatible client.
Sign in at netfilia.app, open AI Settings (top-right menu), and click Generate MCP Key. The key starts with nf_ and is shown only once — copy it.
No global install needed. npx downloads and runs it on demand:
Claude Code — add to ~/.claude.json:
Cursor — Settings → MCP Servers → Add:
Windsurf / other MCP clients — same format, consult your client's MCP documentation for the config file location.
NETFILIA_SCHEMA_ID to auto-target a specific schema without passing it to every tool call.
The MCP server exposes 21 tools organized in 5 groups:
| Tool | Description |
|---|---|
list_schemas | List all your schemas |
get_schema | Get full schema by ID |
create_schema | Create a new empty schema |
update_schema | Update title or data |
delete_schema | Permanently delete a schema |
| Tool | Description |
|---|---|
create_object | Add a node (server, switch, firewall, etc.) |
list_objects | List objects in a schema |
get_object | Get object details |
update_object | Update properties (name, type, group, tags) |
delete_object | Remove an object (cascades connections) |
| Tool | Description |
|---|---|
add_connector | Add a network interface (IP, VLAN, subnet) |
update_connector | Update interface properties |
delete_connector | Remove an interface |
| Tool | Description |
|---|---|
create_connection | Draw a link between two objects |
get_connection | Get connection details |
update_connection | Update label, style, direction |
delete_connection | Remove a connection |
| Tool | Description |
|---|---|
validate_schema | Check against validation rules |
get_summary | Counts by type, connections, subnets |
Two methods supported:
| Method | Format | Expiration | How to get |
|---|---|---|---|
| MCP API key (recommended) | nf_ + 64 hex chars | Never (revocable) | AI Settings → Generate MCP Key |
| JWT | Bearer token | 7 days | POST /api/auth/login |
When NETFILIA_TOKEN starts with nf_, the server uses x-api-key header automatically. Otherwise it uses Authorization: Bearer.
Once connected, ask your AI naturally:
| Variable | Required | Description |
|---|---|---|
NETFILIA_API_URL | Yes | Base URL (e.g. https://netfilia.app) |
NETFILIA_TOKEN | Yes | MCP API key (nf_...) or JWT |
NETFILIA_SCHEMA_ID | No | Default schema ID — tools use this if no schemaId is passed |
Restart your AI IDE after editing the config file. MCP servers are loaded at startup.
Check that your config has the env block with both NETFILIA_API_URL and NETFILIA_TOKEN.
Your API key may be invalid or revoked. Generate a new one in AI Settings.
Verify NETFILIA_API_URL is correct (https://netfilia.app). No trailing slash.