An MCP server for Arcjet - the runtime security platform that ships with your AI code.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
Inspect callable tools, capabilities, and parameters exposed to AI agents by Arcjet.
list-teamsCallable MCP tool function
list-sitesCallable MCP tool function
create-siteCallable MCP tool function
get-site-keyCallable MCP tool function
ARCJET_KEYCallable MCP tool function
list-requestsCallable MCP tool function
Arcjet is the runtime security platform that ships with your code. Enforce budgets, stop prompt injection, detect bots, and protect personal information with Arcjet's AI security building blocks.
The Arcjet MCP server gives AI coding assistants the skills of a security engineer. By connecting to the Arcjet MCP server, your AI coding tools can:
ARCJET_KEY) for use in your projects.The MCP server is available at:
It implements the latest MCP Authorization and Streamable HTTP specifications with OAuth-based authentication.
Any client that supports the latest MCP specification with Streamable HTTP transport and OAuth authorization is supported. This includes:
https://api.arcjet.com/mcp as the server URL.ChatGPT handles the OAuth flow automatically.
Claude Code will open a browser for OAuth authentication on first connection.
Once authenticated, you can use the /mcp command to verify the connection.
Arcjethttps://api.arcjet.com/mcpAdd to .cursor/mcp.json in your project:
After adding the server, Cursor will show a Needs login prompt. Click it to authorize Cursor to access your Arcjet account.
Add to your .vscode/mcp.json in your project or user settings:
Or add it via the command palette:
https://api.arcjet.com/mcpArcjetVS Code will prompt you to authenticate via OAuth on first use.
Add to your mcp_config.json file:
For more details, see the Windsurf MCP documentation.
Once connected, the following tools are available to your AI assistant:
list-teams β Lists teams the authenticated user belongs to.list-sites β Lists sites within a specified team.create-site β Creates a new site within a specified team.get-site-key β Returns the SDK key (ARCJET_KEY) for a specific site.list-requests β Lists recent requests for a site. Supports filtering by conclusion (ALLOW, DENY, ERROR) and pagination.get-request-details β Returns full details for a specific request including headers, rules executed, and decision information.explain-decision β Explains why Arcjet allowed or denied a specific request. Returns a natural language summary, per-rule breakdown, and suggested next steps.get-site-quota β Returns quota usage and limits for a site in the current billing window.analyze-traffic β Analyzes request traffic over a time period. Returns total requests, denials, denial rate, top paths, top IPs, top denial reasons, and trend vs the previous period.get-anomalies β Detects unusual security patterns by comparing current traffic to the previous period. Identifies traffic spikes, geographic shifts, new threat activities, new bot signatures, risk escalation, and suspicious IP patterns.investigate-ip β Investigates an IP address in the context of a site. Returns geo location, threat intelligence (network type, threat activities, entity classification, risk level), and the IP's recent request activity (conclusion breakdown, denial reasons, targeted paths, daily timeline).get-dry-run-impact β Analyzes what would happen if dry-run rules were promoted to live. Shows how many currently-allowed requests would have been blocked by each rule type, which IPs would be most affected, and a false-positive estimate.get-security-briefing β Returns a comprehensive security briefing: active rules summary, traffic analysis, threat intelligence, anomaly detection, dry-run promotion readiness, quota status, and prioritized actionable recommendations. Designed for daily consumption.list-rules β Lists all remote rules configured for a site with their ID, type, mode, and configuration summary.create-rule β Creates a new remote rule for a site. Supports rate limit, bot, shield, and filter rule types.update-rule β Replaces an existing remote rule configuration. All fields must be provided (full replacement).delete-rule β Deletes a remote rule, immediately stopping it from being evaluated.promote-rule β Promotes a remote rule from DRY_RUN to LIVE mode after verification.Remote rules are managed through the MCP server or the Arcjet dashboard β no
code changes or redeployment needed. They apply globally to all requests for a
site. Only rate_limit, bot, shield, and filter rule types are supported
as remote rules. Rules that need parsed request body content (email,
sensitive_info, prompt_injection) require the SDK.
The most common use case for remote rules is responding to an active attack. For example, if you notice suspicious traffic from a specific country, VPN, or IP address, you can create a filter rule to block it immediately without deploying new code:
list-requests to investigate the suspicious traffic and identify
patterns (e.g. a specific country, IP range, or VPN usage).create-rule to add a filter rule in DRY_RUN mode to verify it
matches the right traffic. For example, block a specific country:
ip.src.country == "XX" (ISO 3166-1 alpha-2 country code e.g. US, CN,
RU), block VPN traffic: ip.src.vpn, or block an IP range:
ip.src in { 1.2.3.0/24 }.list-requests again to confirm the rule is matching the expected
traffic without blocking legitimate users.promote-rule to switch the rule from DRY_RUN to LIVE, immediately
blocking the attack traffic.delete-rule to remove the block.Use the analysis tools to maintain ongoing security awareness:
get-security-briefing periodically to get a
comprehensive overview of your site's security posture β traffic trends,
threat landscape, anomalies, dry-run readiness, quota status, and prioritized
recommendations β all in a single call.analyze-traffic to understand request patterns,
denial rates, top paths, and top IPs. This provides the same data as the
Arcjet dashboard analytics.get-anomalies to detect unusual patterns by
comparing current traffic to the previous period β traffic spikes, geographic
shifts, new threat activities, or suspicious IP behavior.analyze-traffic
or list-requests), use investigate-ip to get full context: geo location,
threat intelligence, and the IP's complete request activity on your site.DRY_RUN to LIVE, use
get-dry-run-impact to see exactly how many currently-allowed requests would
be blocked, which IPs are most affected, and a false-positive risk estimate."I'm seeing a spike in denied requests on my site. Can you investigate what's happening and help me block the source?"
The assistant will call analyze-traffic to identify the spike, then
list-requests filtered to DENY to surface the top offending IPs. It uses
investigate-ip to pull threat intelligence for each IP, then
suggests a filter rule. Using create-rule, it creates the rule in DRY_RUN
mode so you can verify the match before calling promote-rule to go live.
"Give me a security briefing for my production site."
The assistant calls list-teams and list-sites to locate your production
site, then calls get-security-briefing. It returns a summary covering active
rules, traffic trends vs. the previous period, anomaly detection, threat
intelligence highlights, dry-run promotion readiness, quota status, and
prioritized recommendations you can act on immediately.
"Add bot protection to my marketing site β start in dry-run mode so I can check it's not blocking real users."
The assistant calls list-teams and list-sites to find the site, then
create-rule to add a bot rule with mode: DRY_RUN configured to block
automated traffic. After traffic flows through, you can ask the assistant to call
get-dry-run-impact to see how many requests would have been blocked and
estimate false-positive risk, then promote-rule to switch the rule to LIVE
when you're satisfied.
The MCP server uses OAuth for authentication. When you first connect from any supported client, you will be redirected to sign in with your Arcjet account. Once authenticated, your AI assistant can securely access your account resources.
https://api.arcjet.com/mcp.Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/arcjet)<a href="https://allmcps.com/mcp/arcjet"><img src="https://allmcps.com/api/badge/arcjet?style=directory" alt="Arcjet on AllMCPs" /></a>