Arcjet MCP server
Arcjet is the AI agent runtime security platform. Discover the agents running in your organization, enforce policy across every action, prompt, and tool call, and keep the evidence to prove what happened. Detect prompt injection, authorize agent tool calls, redact PII, and block bots and abuse.
The Arcjet MCP server is one of two transports that connect Arcjet skills to the Arcjet API. The other is the Arcjet CLI. Use the MCP server with AI coding tools that have no shell access, such as ChatGPT and Claude Desktop. It also works with editors that have built-in MCP support, such as VS Code Copilot, Windsurf, and Cursor. Use the CLI when you are working in a terminal session.
Both transports cover projects, sites, site keys, request logs, Guard logs,
traffic analysis, and remote rules. Use MCP for Discovery, Guard policy
authoring, and session review. Use the CLI to stream live requests and Guard
decisions with arcjet watch and arcjet guards watch.
Compare the Arcjet tools for AI coding agents.
The MCP server is available at:
https://api.arcjet.com/mcpIt implements MCP protocol version 2026-07-28 over Streamable HTTP, with OAuth-based authentication. Arcjet negotiates the protocol version on each request, so clients that use the 2025-06-18 revision also work.
Supported clients
Section titled “Supported clients”Any client that supports the 2025-06-18 or a later MCP specification with Streamable HTTP transport and OAuth authorization is supported. This includes:
- ChatGPT
- Claude Code
- Codex CLI
- Claude Desktop
- Cursor
- VS Code with Copilot
- Windsurf
- Many others that implement the MCP specification.
ChatGPT
Section titled “ChatGPT”- In ChatGPT, go to Settings.
- Navigate to Connectors and select Add connection.
- Enter
https://api.arcjet.com/mcpas the server URL. - Select OAuth for authentication.
- Click Create.
ChatGPT handles the OAuth flow automatically.
Claude Code
Section titled “Claude Code”claude mcp add arcjet --transport http https://api.arcjet.com/mcpClaude Code opens a browser for OAuth authentication on first connection. Once
authenticated, you can use the /mcp command to verify the connection.
Codex CLI
Section titled “Codex CLI”codex mcp add arcjet --url https://api.arcjet.com/mcpCodex prompts you to authenticate with Arcjet when it first connects to the server.
Claude Desktop
Section titled “Claude Desktop”- Open Settings in the sidebar.
- Navigate to Connectors and select Add custom connector.
- Configure the connector:
- Name:
Arcjet - URL:
https://api.arcjet.com/mcp
- Name:
Cursor
Section titled “Cursor”Add to .cursor/mcp.json in your project:
{ "mcpServers": { "arcjet": { "type": "streamable-http", "url": "https://api.arcjet.com/mcp" } }}After you add the server, Cursor shows a Needs login prompt. Click it to authorize Cursor to access your Arcjet account.
VS Code with Copilot
Section titled “VS Code with Copilot”Add to your .vscode/mcp.json in your project or user settings:
{ "servers": { "arcjet": { "type": "http", "url": "https://api.arcjet.com/mcp" } }}Or add it from the command palette:
- Open the Command Palette (Ctrl+Shift+P on Windows/Linux or Cmd+Shift+P on macOS).
- Run MCP: Add Server.
- Select HTTP.
- Enter the URL:
https://api.arcjet.com/mcp - Enter the name:
Arcjet - Select Workspace or User depending on your preference.
VS Code prompts you to authenticate with OAuth on first use.
Windsurf
Section titled “Windsurf”Add to your mcp_config.json file:
{ "mcpServers": { "arcjet": { "serverUrl": "https://api.arcjet.com/mcp" } }}For more details, see the Windsurf MCP documentation.
Available tools
Section titled “Available tools”Your client can discover the tools through tools/list. Each tool’s description
lists the permissions it requires. Feature flags can affect which tools appear.
list-teams– Lists teams the authenticated user belongs to.list-sites– Lists sites within a team. PassprojectIdto list the actors in one project.create-site– Creates a site within a team. PassprojectIdto create an actor in that project.get-site-key– Returns the SDK key (ARCJET_KEY) for a specific site.submit-feedback– Reports a problem the assistant hit while using the Arcjet tools, such as a confusing result or a missing tool. It doesn’t change any security configuration.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.list-guards– Lists recent guard decisions for a site. Supports filtering by conclusion, time range, andcorrelationId, such as a coding agent session ID, and pagination.get-guard– Returns the full record for a guard decision, including each rule’s mode and result, the policy that matched, and the detector results the policy read.get-session-taint– Explains why a coding agent session is or was flagged by session analysis, including the active flags and the activity that set each one. It doesn’t unlock the session.submit-error-report– Reports a coding agent guard decision as a false positive or a false negative. It doesn’t unlock a session.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 compared with 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 allowed requests each rule type would have blocked, 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 fromDRY_RUNtoLIVEmode after verification.list-guard-policies– Lists the site’s agent guard policies with their labels and declared contracts.get-guard-policy– Returns one policy, including every declared input with its kind and exposure.validate-guard-policy– Compiles a draft policy and runs its stored tests, reporting one result per test.evaluate-guard-policy– Runs one sample input through the official Open Policy Agent evaluator.suggest-guard-policies– Proposes policies from the input shapes the site’s own traffic carries.put-guard-policy– Creates or replaces a policy.delete-guard-policy– Deletes a policy, immediately stopping it from being evaluated.retry-guard-policy– Retries a failed publication.get-governance-evidence– Returns a team’s AI governance evidence against a framework, such as the NIST AI RMF: which requirements Arcjet has evidence for, each signal’s value, and how live actors are enforced. It’s evidence, not a statement of compliance.list-governed-systems– Lists a team’s actors and Discovery providers with each one’s owner, purpose, review state, provider decision, and enforcement. Filters find gaps, such as no owner, a review due, or a prohibited provider still in use.
Projects and onboarding
Section titled “Projects and onboarding”| Tool | What it does |
|---|---|
list-projects, get-project, get-site | Find projects and read project or actor metadata. |
create-project, rename-project, rename-site | Create a project or change a project or actor name. |
delete-project, delete-site | Delete a project or actor. Project deletion requires an empty, non-default project. |
check-project-activity, check-site-activity | Check whether a project or actor has received a request, Guard decision, or capture. |
The onboarding checks return hasActivity and firstActivityAt. When activity
is found, the check records the first observed timestamp once. The project
check includes the collector and its actors. The site check covers that actor. Renaming a project or deleting a project
or actor requires the account holder’s first-party session. With a delegated
OAuth connection, use the Arcjet Console for these operations.
Project activity and reviews
Section titled “Project activity and reviews”Use list-project-activities, list-project-sequences, or
list-site-decisions to find events. Use get-capture or
get-project-guard for an event’s details. Use get-project-session-taint to
inspect a session lock across a project.
Use request-session-taint-clear to submit a request for an operator. Use
list-review-reports to view the project inbox. The update-review-report
tool edits a pending report during its edit window. Editing, resolving with
resolve-review-report, and clearing directly with clear-session-taint
require the account holder’s first-party session. With a delegated OAuth
connection, use the Arcjet Console for these operations. Approval of a report
that clears a lock requires session-taint:clear.
Discovery
Section titled “Discovery”Use a project ID from list-projects. Discovery reads require
discovery:read when scoped permissions apply.
See what Discovery collects.
| Tool | What it does |
|---|---|
get-discovery-summary | Returns enrollment and device health counts. |
list-discovery-devices, list-discovery-device-statuses | List enrolled devices or the most recent reports received in the seven-day lookback. |
get-discovery-usage-summary | Returns totals for a selected window, including people, devices, providers, and unidentified connections. |
list-discovery-app-usage, list-discovery-provider-usage | Group observed usage by app or provider. |
list-discovery-people, list-discovery-person-devices | List attributed usage by person or find the devices associated with one person. |
list-discovery-accounts, list-discovery-usage | Inspect local accounts and connection records, including source capture IDs when available. |
To investigate a provider, use list-discovery-provider-usage to find its ID.
Pass it to list-discovery-people, then use a returned person ID with
list-discovery-person-devices. Use list-discovery-accounts or
list-discovery-usage to inspect the underlying attribution. Keep the same
filters when using a cursor from pageInfo. Including inactive people in
list-discovery-people requires team-admin access.
Console analytics
Section titled “Console analytics”The analytics tools use the Console’s site-level data and require
analytics:read when scoped permissions apply.
| Tool | What it does |
|---|---|
get-site-request-stats | Returns daily allow, deny, challenge, and error counts through the partial current UTC day. |
get-site-request-totals | Returns counts by conclusion for the selected period and the previous period when available. |
list-site-request-conclusions-by-path, list-site-request-conclusions-by-ip | Break down request conclusions by path or by IP and host. |
list-site-request-reasons-by-path | Breaks down decision reasons by path. |
get-site-requests-info | Returns the most recent request, Guard decision, or capture time, plus HTTP deny and challenge counts. |
The counts and breakdown tools accept days from 1 to 30 and default to
seven days. The activity timestamp lookup uses the site’s full retained history.
Guard policies
Section titled “Guard policies”Agent guard policies decide whether a tool call or other action runs. They’re
selected by the label on a guard() call, so they reach work that never
arrives over HTTP: a queue job, a workflow step, a tool call.
The tools back the same service the Arcjet Console uses, so an agent and the Console compile and publish through one implementation. A typical flow:
- Call
get-guard-policyto read the policy’s contract – its label, and every input with its kind and exposure. Write theguard()call from that contract, because a policy does nothing until the application sends values under exactly the names it declares. - Draft the policy using the
author-guard-policyskill. - Call
validate-guard-policyto compile the draft and run its stored tests. It reports every failure at once. - Call
put-guard-policyto publish. A live rule can’t publish without at least one stored test.
A policy that guards a coding agent declares what it executes on – any
combination of Tool call, Prompt, and Model switch – and the summary reports
that as executeOn. Its inputs are the
fixed coding agent contract, so copy a starter policy from
Coding agent policies
rather than declaring inputs by hand. Publishing it is what turns it on.
For the policy contract, the language, and the publication gates, see Author and publish policies.
Rules or policies
Section titled “Rules or policies”The two remote configuration systems are separated by which SDK call evaluates
them. A remote rule is site-wide and evaluated on every protect() call. A
policy is selected by label on a guard() call. Both are configured remotely
and neither needs a deployment, but a remote rule only runs where the
application already calls protect().
Getting this wrong costs a whole session: a rate limit written as a policy
needs a guard() call the application doesn’t make, and a spend cap written as
a filter rule can’t see the amount.
Remote rules
Section titled “Remote rules”Remote rules are managed through the MCP server, the
Arcjet CLI, or the Arcjet Console – 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.
See Remote rules for the full reference, including how remote rules are evaluated alongside SDK rules and when to use each.
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:
- Use
list-requeststo investigate the suspicious traffic and identify patterns (for example, a specific country, IP range, or VPN usage). - Use
create-ruleto add a filter rule inDRY_RUNmode to verify it matches the right traffic. For example, block a specific country:ip.src.country == "XX"(ISO 3166-1 alpha-2 country code, such asUS,CN, orRU), block VPN traffic:ip.src.vpn, or block an IP range:ip.src in { 1.2.3.0/24 }. - Use
list-requestsagain to confirm the rule is matching the expected traffic without blocking legitimate users. - Use
promote-ruleto switch the rule fromDRY_RUNtoLIVE, immediately blocking the attack traffic. - Once the attack subsides, use
delete-ruleto remove the block.
Security monitoring
Section titled “Security monitoring”Use the analysis tools to maintain ongoing security awareness:
- Daily briefing: Call
get-security-briefingperiodically for a comprehensive overview of your site’s security posture in a single call. It covers traffic trends, threat landscape, anomalies, dry-run readiness, quota status, and prioritized recommendations. - Traffic analysis: Use
analyze-trafficto understand request patterns, denial rates, top paths, and top IPs. Use the Console analytics tools for daily charts and detailed breakdowns. - Anomaly detection: Use
get-anomaliesto detect unusual patterns by comparing current traffic to the previous period – traffic spikes, geographic shifts, new threat activities, or suspicious IP behavior. - IP investigation: When you identify a suspicious IP (from
analyze-trafficorlist-requests), useinvestigate-ipto get full context: geo location, threat intelligence, and the IP’s complete request activity on your site. - Dry-run validation: Before promoting a rule from
DRY_RUNtoLIVE, useget-dry-run-impactto see how many allowed requests would be blocked, which IPs are most affected, and a false-positive risk estimate.
Usage examples
Section titled “Usage examples”Investigate and block suspicious traffic
Section titled “Investigate and block suspicious traffic”“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 calls 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.
Get a daily security briefing
Section titled “Get a daily security briefing”“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 compared with the previous period, anomaly detection, threat
intelligence highlights, dry-run promotion readiness, quota status, and
prioritized recommendations you can act on immediately.
Set up bot protection without redeploying
Section titled “Set up bot protection without redeploying”“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, ask the assistant to call
get-dry-run-impact to see how many requests would have been blocked and to
estimate false-positive risk. When you’re satisfied, ask it to call
promote-rule to switch the rule to LIVE.
Authentication
Section titled “Authentication”The MCP server uses OAuth for authentication. When you first connect from any supported client, Arcjet redirects you to sign in with your Arcjet account. Once authenticated, your AI assistant can securely access your account resources.
Security
Section titled “Security”- Verify the endpoint – always confirm you are connecting to
https://api.arcjet.com/mcp. - Review tool calls – enable confirmation prompts in your AI client so you can review actions before they execute.
- Trusted clients only – only connect from AI clients you trust. Connecting grants the AI tool the same access as your Arcjet account.
See also
Section titled “See also”- Agent get started – canonical entry point for setting up Arcjet in an agentic workflow.
- Arcjet CLI – sibling support transport for terminal-based workflows.
- Arcjet plugin – bundled experience for Claude Code and Cursor users that wires up MCP, skills, and coding rules together.
Privacy and support
Section titled “Privacy and support”- Privacy policy: arcjet.com/privacy.
- Support: support@arcjet.com or join our Discord. For more information, see the support page.