Agentguard

io.github.MukundaKattaPublished by GitHub account MukundaKattav0.1.0Updated Oct 24, 2026

Network-egress firewall for agent tools: check URLs against a declarative policy.

VerifiedSTDIODesktop onlyDeveloper ToolsSecurity & Monitoring

Overview

AI-generated overview

Lets an assistant check whether URLs are permitted by a declarative network-egress policy before any fetch.

What you can do
Exposes three tools backed by the agentguard decision engine: check_url evaluates a single URL against a policy and returns allowed, reason and detail without making a request; check_urls_batch evaluates many URLs and returns per-URL decisions plus totals; validate_policy flags policy mistakes such as empty allowlists, broad wildcards and malformed host patterns.
When to use it
Useful when reviewing or drafting an egress allowlist for an agent's tools, or when you want an assistant to tell you which of a list of URLs a policy would block. It is a checking aid, not an enforcement layer.
Requirements
Runs locally over stdio, typically started with npx from the npm package @mukundakatta/agentguard-mcp, so Node.js and network access for the package download are needed. No accounts, API keys, environment variables or headers are declared. Desktop MCP clients only.
Before you install
The server only checks URLs; it does not wrap fetch or block real requests, so it provides no runtime enforcement. Policies and URL lists passed to the tools are handled by the local process. For actual enforcement the README points to using the underlying library directly in your Node process.

Installation

In SourceWeft

  1. Open Agentguard in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.

Other MCP clients

Follow the launch instructions in the repository.

README

agentguard-mcp

MCP server for @mukundakatta/agentguard. Lets Claude Desktop, Cursor, Cline, Windsurf, Zed, or any other MCP client check whether a URL is allowed under a network-egress policy before any fetch.

bash
npx -y @mukundakatta/agentguard-mcp

Three tools:

  • check_url — single URL check: returns { allowed, reason } without making any actual request.
  • check_urls_batch — batch check with per-URL decisions plus a summary.
  • validate_policy — sanity-check a policy spec for empty allowlists, overly broad * wildcards, and malformed host patterns.

Add to your client

Claude Desktop

Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

json
{  "mcpServers": {    "agentguard": {      "command": "npx",      "args": ["-y", "@mukundakatta/agentguard-mcp"]    }  }}

Same shape for Cursor (~/.cursor/mcp.json), Cline, Windsurf, Zed.

Tool examples

check_url:

json
{  "url": "https://api.openai.com/v1/chat",  "policy": { "allow": ["api.openai.com", "*.anthropic.com"] }}

Returns:

json
{ "allowed": true, "reason": "matched_allowlist", "detail": null }

check_urls_batch:

json
{  "urls": [    "https://api.openai.com/v1/chat",    "https://evil.example.com/leak"  ],  "policy": { "allow": ["api.openai.com"] }}

Returns:

json
{  "results": [    { "url": "https://api.openai.com/v1/chat", "allowed": true, ... },    { "url": "https://evil.example.com/leak", "allowed": false, "reason": "not_in_allowlist", ... }  ],  "summary": { "total": 2, "allowed_count": 1, "denied_count": 1 }}

validate_policy:

json
{ "policy": { "allow": ["*", "https://api.example.com", "api.example.com/v1"] } }

Returns issues for the * wildcard, the scheme prefix, and the path suffix — common mistakes when first writing a policy.

Why a separate MCP server

@mukundakatta/agentguard is a zero-dependency JavaScript library. This MCP server makes its decision engine accessible from any MCP-aware AI assistant: ask Claude "does my agent's tool list pass this firewall?" or "which of these 50 URLs would my policy block?" and the assistant calls these tools directly.

Note: this MCP server only checks URLs — it does not actually wrap fetch or block real requests. For runtime enforcement, use @mukundakatta/agentguard directly inside your Node process.

Sibling MCP servers

Part of the agent-stack series:

License

MIT

Source: README.md at commit c9f7741

Tools

0
SourceWeft has not started this package in its sandbox yet, so its tools are not known.

Version history

1
  1. v0.1.0LatestSep 16, 2026

Score

50% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 days25 pts

    Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.

  • Auth declared10 pts

    Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.

  • Tools listed15 pts

    Answer tools/list without a credential, or ship a package that starts in a sandbox without one.

  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts