# Arcjet MCP

```json
{
  "name": "Arcjet MCP",
  "slug": "arcjet_mcp",
  "url": "https://composio.dev/toolkits/arcjet_mcp",
  "markdown_url": "https://composio.dev/toolkits/arcjet_mcp.md",
  "logo_url": "https://logos.composio.dev/api/arcjet",
  "categories": [
    "developer tools & devops"
  ],
  "is_composio_managed": false,
  "updated_at": "2026-11-30T05:32:30.852Z"
}
```

![Arcjet MCP logo](https://logos.composio.dev/api/arcjet)

## Description

Securely connect your AI agents and chatbots (Claude, ChatGPT, Cursor, etc) with Arcjet MCP or direct API to inspect security decisions, analyze traffic, investigate IPs, and manage remote rules through natural language.

## Summary

Arcjet MCP is a hosted security management server for inspecting Arcjet teams, sites, requests, and rules.
It centralizes application security data and controls for faster investigation.

## Categories

- developer tools & devops

## Toolkit Details

- Tools: 23

## Images

- Logo: https://logos.composio.dev/api/arcjet

## Authentication

- **Dcr Oauth**
  - Type: `custom`
  - Description: Dcr Oauth authentication for Arcjet MCP.
  - Setup:
    - Configure Dcr Oauth credentials for Arcjet MCP.
    - Use the credentials when creating an auth config in Composio.

## Suggested Prompts

- Review anomalous traffic across my Arcjet sites
- Investigate suspicious IP activity from yesterday
- List recent Arcjet decisions blocking legitimate requests

## Supported Tools

| Tool slug | Name | Description |
|---|---|---|
| `ARCJET_MCP_ANALYZE_TRAFFIC` | Analyze traffic | Analyze request traffic for an Arcjet site over a configurable time period (1-30 days). Returns total requests, denials, denial rate, top paths, top IPs, top denial reasons, and trend vs the previous period. Use this for a high-level security overview, to spot which paths or IPs generate the most denials, or to identify IPs worth investigating further with investigate-ip. Requires the sites:read permission. |
| `ARCJET_MCP_CREATE_RULE` | Create rule | # Create remote rule Create a new remote rule for an Arcjet site. Supports four rule types: rate_limit (throttle request volume), bot (detect and control automated traffic), shield (WAF — block injection attacks and other OWASP threats), and filter (allow/deny by IP, country, region, ASN, network type, headers, or path). Rules apply globally to all requests. Always create in DRY_RUN mode first, verify behavior with list-requests or get-dry-run-impact, then use promote-rule to switch to LIVE. ## Bot categories allow/deny values are named bots (e.g. GOOGLE_CRAWLER, CURL) or categories: CATEGORY:SEARCH_ENGINE, CATEGORY:AI, CATEGORY:AI_AGENT, CATEGORY:SOCIAL, CATEGORY:MONITOR, CATEGORY:GOOGLE, CATEGORY:AMAZON, CATEGORY:META, CATEGORY:MICROSOFT, CATEGORY:TOOL, CATEGORY:PROGRAMMATIC, CATEGORY:PREVIEW, CATEGORY:FEEDFETCHER, CATEGORY:WEBHOOK, CATEGORY:VERCEL, CATEGORY:SLACK, CATEGORY:ARCHIVE, CATEGORY:ACADEMIC, CATEGORY:ADVERTISING, CATEGORY:OPTIMIZER, CATEGORY:APPLE, CATEGORY:YAHOO, CATEGORY:BOTNET, CATEGORY:UNKNOWN. CATEGORY:AI_AGENT is the subset of CATEGORY:AI that fetches a page on demand for a person, such as ChatGPT-User, Claude-User or a coding agent. To block AI crawlers but let AI agents through, allow CATEGORY:AI_AGENT rather than denying CATEGORY:AI, because a deny of CATEGORY:AI also blocks agents. An allow list denies every detected bot it does not name, so switching from a CATEGORY:AI deny list to a CATEGORY:AI_AGENT allow list also blocks search engines, monitors and every other bot: add the categories the site relies on, such as CATEGORY:SEARCH_ENGINE, to the same allow list. ## Rate limit match pattern The optional `match` field is a glob-style path pattern restricting which requests the rate limit applies to. Examples: `/api/*`, `/api/v1/users`. If omitted, the rate limit applies to all paths. ## Rate limit characteristics Default: ip.src. Other options: http.host, http.method, http.request.uri.path, http.request.headers["name"], http.request.cookie["name"], http.request.uri.args["name"]. ## Filter rules Use a `filter` rule to allow or deny requests by IP, country, region, continent, ASN, network type, headers, method, or path. Filters match known, well-defined values. They are not a WAF — do not use them to block SQL injection, XSS, or other attack payloads (use `shield` for that). Use `bot` rules for automated clients by category. `allow` and `deny` are mutually exclusive. Provide exactly one: - `deny` — blocklist. Matching requests are denied; everything else is allowed. Use this to block specific IPs, countries, ASNs, or network types. - `allow` — allowlist. Matching requests are allowed; everything else is denied. Use this to restrict traffic to approved countries, networks, or paths. Each allow/deny entry is one expression string. Max 10 expressions per rule, each ≤ 1024 bytes. Multiple expressions in the array are combined with OR. Combine conditions with `and` inside a single expression string. Always create filters in DRY_RUN first. After traffic has been logged, use get-dry-run-impact, then promote-rule. ### Syntax The language is Wireshark-like display filters. Comparisons (`eq`/`==`, `ne`/`!=`, `contains`) are case-sensitive byte matches. Wrap strings in `lower()` / `upper()`, or use `matches` with `(?i)`, for case-insensitive matching. - Strings are double-quoted: `ip.src.country eq "US"`. Escape inner quotes as `\\"`. - IP addresses and CIDR ranges are a special type and must **not** be quoted: `ip.src eq 1.2.3.4`, `ip.src in { 192.0.2.0/24 }`. - Booleans are written as the field name (truthy) or negated: `ip.src.vpn`, `not ip.src.vpn`. - Sets use braces with **space-separated** values (no commas): `ip.src.country in {"US" "CA" "GB"}`. - `eq`/`==` and `ne`/`!=` are aliases. Prefer `eq` / `ne`. - Other operators: `contains`, `matches`/`~` (regex), `in`, `wildcard`, `strict wildcard`, `not`/`!`, `and`/`&&`, `or`/`\|\|`, `gt`/`lt`/`ge`/`le`. - Functions: `len()`, `lower()`, `upper()`. Do not use `ip.src.asn` — the field is `ip.src.asnum`. ### Fields **IP address:** `ip.src` (unquoted IP or CIDR via `in`) **Geography (ISO / English names from the IP database):** - `ip.src.country` — ISO 3166-1 alpha-2 (`"US"`, `"DE"`). Prefer this over `ip.src.country.name`. - `ip.src.country.name` — `"United States"` - `ip.src.region` — English region/state name (`"California"`, `"England"`) - `ip.src.city`, `ip.src.postal_code` - `ip.src.continent` — `"AF"` `"AN"` `"AS"` `"EU"` `"NA"` `"OC"` `"SA"`. Prefer this over `ip.src.continent.name`. **ASN (all string values, so quote them):** - `ip.src.asnum` — Autonomous System number (`"15169"`) - `ip.src.asnum.name` — `"Google, LLC."` - `ip.src.asnum.domain` — `"google.com"` - `ip.src.asnum.country` — ISO country of the ASN - `ip.src.asnum.type` — `"hosting"`, `"isp"`, `"business"`, or `"education"` **Network type (booleans):** - `ip.src.vpn` — VPN exit - `ip.src.tor` — Tor exit - `ip.src.proxy` — open/anonymous or corporate proxy - `ip.src.relay` — privacy relay (e.g. iCloud Private Relay) - `ip.src.hosting` — cloud / data-center / hosting - `ip.src.crawler` — known crawler IP (`ip.src.crawler.name` for the name) - `ip.src.mobile` — mobile carrier There is no `ip.src.residential` field. `not ip.src.hosting` and `ip.src.asnum.type eq "isp"` only approximate some residential traffic and will also match other non-hosting networks (for example mobile). Do not treat those expressions as equivalent to a residential boolean. `investigate-ip` returns `filterAttributes` (country, region, continent, city, ASN, ASN type) and `suggestedFilters` with ready-to-use expressions. Prefer those values over guessing. When mapping `threatIntel.networkTypes` into a filter: `hosting` → `ip.src.hosting`, `vpn` → `ip.src.vpn`, `proxy` → `ip.src.proxy`, `tor` → `ip.src.tor`, `relay` → `ip.src.relay`, `mobile` → `ip.src.mobile`. `residential` has no dedicated boolean. **HTTP:** `http.host`, `http.request.method`, `http.request.uri.path` **Maps:** `http.request.headers["name"]`, `http.request.cookie["name"]`, `http.request.uri.args["name"]` (arg values are percent-decoded; path is the raw encoded path) ### Common recipes Block one IP (deny): `ip.src eq 203.0.113.10` Block several IPs or a CIDR (deny): `ip.src in { 203.0.113.10 198.51.100.0/24 }` Block one country (deny): `ip.src.country eq "RU"` Block several countries (deny): `ip.src.country in {"RU" "KP" "IR"}` Allow only selected countries (allow — everything else is denied): `ip.src.country in {"US" "CA" "GB"}` Block a region/state (deny): `ip.src.region eq "California"` Block a continent (deny): `ip.src.continent eq "EU"` Block an ASN by number (deny), e.g. Google: `ip.src.asnum eq "15169"` Block hosting/cloud ASNs (deny): `ip.src.asnum.type eq "hosting"` Block VPN, Tor, proxies, or hosting networks (deny — one expression each; OR'd): - `ip.src.vpn` - `ip.src.tor` - `ip.src.proxy` - `ip.src.hosting` Block VPN or Tor in one expression (deny): `ip.src.vpn or ip.src.tor` Allow only non-VPN US GET requests (allow): `http.request.method eq "GET" and ip.src.country eq "US" and not ip.src.vpn` Block a user-agent substring, case-insensitive (deny): `lower(http.request.headers["user-agent"]) contains "curl"` Block a path prefix (deny): `http.request.uri.path wildcard "/admin/*"` ### Pitfalls - Quoting an IP is invalid (`ip.src eq "1.2.3.4"` fails). Leave IPs and CIDRs unquoted. - `in` sets are space-separated. Do not write `{"US", "CA"}`. - `allow` is an allowlist (non-matches are denied). Do not put a single-country `allow` when the user asked to block that country — use `deny`. - Filters are literal. `http.request.uri.path contains "login"` does not match `/Login`. - Do not hand-write injection/XSS signatures as filters; use a `shield` rule. - Prefer one focused filter rule over packing unrelated policies into a single expression list. ## Remote rules vs Guard policies Two remote surfaces, attached to different SDK calls. Choosing wrong fails silently: the thing saves and never fires. \| \| Remote rule \| Guard policy \| \| ------------ \| ------------------------------------------------------ \| ---------------------------------------------------------------------------------------------- \| \| SDK call \| `protect()` \| `guard()` \| \| Protects \| HTTP routes and API requests \| Tool calls, agent actions, queue jobs, workflow steps \| \| Selected by \| nothing — site-wide, every `protect()` call \| an exact `label`, e.g. `email.sent` \| \| Reads \| the request: IP, geo, ASN, headers, method, path, rate \| only the typed inputs the app sends, plus detector verdicts \| \| New app code \| none, if the app already calls `protect()` \| yes for an application policy — a `guard()` call at the action; none for a coding-agent policy \| \| Written in \| typed config + filter expressions \| Rego, or a builder spec \| Ask: **is this a request, or an action?** \| Ask \| Surface \| Why \| \| ------------------------------------------ \| ----------- \| ----------------------------------------------------- \| \| Rate limit `/api`, block a country or bot \| remote rule \| in the request \| \| Block SQL injection \| remote rule \| `shield`, not a filter and not a policy \| \| Don't email outside our domain \| policy \| recipient is an action argument \| \| Refunds over $500 need approval \| policy \| amount and limit are application state \| \| No card numbers in an email body \| policy \| needs a `LOCAL` input \| \| No destructive tools on an injected prompt \| policy \| combines a detector verdict with app state \| \| Check a queue job or workflow step \| policy \| never arrives over HTTP, so `protect()` cannot see it \| Notes: - Neither is automatic. A rule needs no code _change_, but is inert unless the app calls `protect()`. - Both can rate limit. A rule counts `protect()` calls keyed by the request; a policy counts what the app sends, keyed by actor — use a policy for per-user or per-tool-call limits. - Prompt injection and sensitive info are not available as remote rules (they need body content). In code they are SDK rules; in a policy they are detectors, whose verdict is a fact to combine (`injection AND destructive`) rather than a verdict alone. - Sites normally have both: rules at the perimeter, policies on the actions behind it. - Policies come in two kinds. One guards the customer's own actions and is selected by the `label` a `guard()` call passes. The other guards a developer's coding agent, is selected by what it **executes on** (Tool call or Prompt), and needs no application code — publishing it turns it on. A policy is one kind or the other, never both. Requires the sites:write permission. |
| `ARCJET_MCP_CREATE_SITE` | Create site | Create a new Arcjet site within a team. Use this when onboarding a new application to Arcjet protection. Returns the site ID and SDK key (ARCJET_KEY) ready to add to your application's environment. After creating a site, use create-rule to add security rules. Requires the sites:write permission. |
| `ARCJET_MCP_DELETE_RULE` | Delete rule | Delete a remote rule from an Arcjet site. Takes effect immediately — requests previously blocked by this rule will start being allowed. This cannot be undone; use create-rule to re-create the rule if needed. Use list-rules first to get the rule ID. Requires the sites:write permission. Not available to agent credentials. |
| `ARCJET_MCP_EXPLAIN_DECISION` | Explain decision | Explain why Arcjet allowed or denied a specific request in natural language. Returns a plain-English summary, per-rule breakdown, and actionable next steps. Use this instead of get-request-details when the goal is to understand or troubleshoot a security decision — for example, when a user reports being blocked, or to verify that a newly created rule behaves as expected. Requires the sites:read permission. |
| `ARCJET_MCP_GET_ANOMALIES` | Get anomalies | Detect unusual security patterns for an Arcjet site by comparing a recent period to the previous period of equal length. Identifies traffic spikes, geographic shifts, new threat activities, new bot signatures, risk escalation, and suspicious IP surges. Returns anomalies sorted by severity with period-over-period metrics. Use this to proactively surface emerging threats, investigate sudden traffic changes, or as a daily check alongside get-security-briefing. Requires the sites:read permission. |
| `ARCJET_MCP_GET_DRY_RUN_IMPACT` | Get dry run impact | Analyze the potential impact of promoting dry-run rules to live. Shows precisely how many currently-allowed requests would have been blocked by each dry-run rule type, which IPs would be most affected, and a false-positive estimate. Use this before calling promote-rule to understand the impact of making a dry-run rule live. The analysis reads request logs, so it reaches back only as far as the site's plan retains them — check analyzedSince for the window actually covered and retentionLimit when it was shortened. Requires the sites:read permission. |
| `ARCJET_MCP_GET_GUARD` | Get guard | Get the full record for a specific guard decision — the same evidence the Console Activity view shows. Returns the overall conclusion, decoded call metadata (tool name/input, hook event, etc.), each rule's algorithm type, mode (LIVE/DRY_RUN), conclusion, reason, and numeric results (e.g. tokens remaining for rate-limit rules, detected entity types for sensitive-info rules), the remote policy that matched (policyEvaluation: revision, status, artifact SHA), and detector verdicts the expression read (untrustedPolicySignals — including ip_threat. risk scores and per-host assessments for destination-threat denials). Use this when list-guards surfaces a denied or errored guard and you need to understand exactly which rule fired and why. Requires the sites:read permission. |
| `ARCJET_MCP_GET_REQUEST_DETAILS` | Get request details | Get full details for a specific request, including headers, rule execution results, IP, and fingerprint. Use this when you need raw request data for debugging — for example, checking which headers triggered a rule or confirming the SDK version. Prefer explain-decision when the goal is to understand why a request was allowed or denied. Common sensitive headers (Authorization, X-Api-Key, etc.) are redacted, but headers may still contain application-specific sensitive data — do not log or display header values without user confirmation. Requires the sites:read permission. |
| `ARCJET_MCP_GET_SECURITY_BRIEFING` | Get security briefing | Get a comprehensive security briefing for an Arcjet site in a single call. Composes active rules, traffic analysis, threat landscape, anomaly detection, dry-run promotion readiness, quota status, and prioritized recommendations into one response. Designed for periodic (e.g. daily) consumption — use this as a starting point when reviewing a site's security posture, then drill into specific areas with analyze-traffic, get-anomalies, or investigate-ip as needed. Requires the sites:read permission. |
| `ARCJET_MCP_GET_SESSION_TAINT` | Get session taint | Get why a coding-agent session is (or was) tainted for a site — the same facts the Console session-taint panel shows. Pass the siteId and the session's correlationId (Claude session_id / Cursor conversation_id, also stored as correlation_id on guard and capture rows). Returns whether the session is currently tainted, active flags (e.g. prompt_injection, credential_access), lockEnforcement (live/dry_run/none/unknown), per-flag explanations (tool, trigger, screened excerpt in untrustedData), and retained operator clears. Use this when get-guard or list-guards shows a `coding-agent.session-analysis` / `session_flags` denial and you need to see what marked the session. Does not unlock a session — clearing stays in the Console Reviews inbox. Requires the projects:read permission. |
| `ARCJET_MCP_GET_SITE_KEY` | Get site key | Returns the site's SECRET SDK key (ARCJET_KEY). Treat it as a credential: retrieve it only when the user explicitly needs it for environment configuration, and never repeat it in summaries, logs, comments or other tools' inputs. Get the SDK key (ARCJET_KEY) for an Arcjet site. Use this when setting up Arcjet in a new application or retrieving the key for environment configuration. The returned key initializes the Arcjet SDK in your application code. Requires the sites:read permission. |
| `ARCJET_MCP_GET_SITE_QUOTA` | Get site quota | Get quota usage and limits for an Arcjet site. Shows the current plan, usage by category (e.g. protected requests, bot detection), and whether any quotas are exceeded. Use this to check if a site is approaching plan limits before they cause service degradation, or to determine whether a plan upgrade is needed. Requires the sites:read permission. |
| `ARCJET_MCP_INVESTIGATE_IP` | Investigate ip | Investigate an IP address in the context of a specific Arcjet site. Returns threat intelligence (network type, threat activities, entity classification, risk level), filterAttributes and suggestedFilters for creating a filter rule (country, region, continent, ASN, ASN type, network type), and the IP's recent request activity on the site (conclusion breakdown, denial reasons, targeted paths, daily timeline). Use this for incident response — e.g. a user reports abuse from an IP, or analyze-traffic/list-requests surfaces a suspicious IP. Pass suggestedFilters expressions to create-rule as rule.filter.deny (or allow). The ASN field is ip.src.asnum, not ip.src.asn. Threat intelligence and filter attributes are always returned when known; the site's own request activity follows plan log retention, so check activityAvailable and retentionLimit before relying on the activity sections. Requires the sites:read permission. |
| `ARCJET_MCP_LIST_GUARDS` | List guards | List recent guards for an Arcjet site. Guards capture the outcome of Arcjet Guard evaluations (rate limits, prompt injection, sensitive info detection, etc.) with per-rule detail. Supports filtering by conclusion, time range, and correlationId (coding-agent session / Cursor conversation id), and pagination via cursor. Use this to audit guard activity, identify blocked requests, scope one agent session, or find a specific guard ID for deeper inspection with get-guard. Requires the sites:read permission. |
| `ARCJET_MCP_LIST_REQUESTS` | List requests | List recent requests for an Arcjet site, optionally filtered by decision (ALLOW/DENY/ERROR). Use this to analyze traffic patterns, identify attacks, debug rate limit or bot denials, verify that new rules are working correctly in DRY_RUN mode, or find specific request IDs for deeper investigation with get-request-details or explain-decision. Supports pagination via cursor. Requires the sites:read permission. |
| `ARCJET_MCP_LIST_RULES` | List rules | List all remote rules configured for an Arcjet site. Returns each rule's ID, type, mode (LIVE/DRY_RUN), and configuration summary. Use this to audit the current security posture, find rule IDs for update-rule/delete-rule/promote-rule, or verify that rules created with create-rule are configured correctly. Requires the sites:read permission. |
| `ARCJET_MCP_LIST_SITES` | List sites | List all Arcjet sites belonging to a team. Each site represents one application protected by Arcjet (e.g. your API, dashboard, or marketing site). Use this to find site IDs needed by most other tools, or to verify which applications are already onboarded to Arcjet. Requires the sites:read permission. |
| `ARCJET_MCP_LIST_TEAMS` | List teams | Get the Arcjet teams this session can act in. This is the entry point — call this first to get the team ID required by list-sites and create-site. Most workflows start here: list-teams → list-sites → (other tools). Requires the team:read permission. |
| `ARCJET_MCP_PROMOTE_RULE` | Promote rule | Promote a remote rule from DRY_RUN to LIVE mode. Convenience wrapper — reads the existing rule, changes its mode to LIVE, and saves it. Use get-dry-run-impact first to assess how many requests would be blocked and check for false positives. Returns an error if the rule is already in LIVE mode. Requires the sites:write permission. |
| `ARCJET_MCP_SUBMIT_ERROR_REPORT` | Submit error report | Use only when the user explicitly asks to report a Guard decision error to Arcjet. Report a coding-agent Guard decision error. Use the decisionId from Activity (`Decision: gdec_…`). Set errorType to false_positive (should not have been denied) or false_negative (should have been denied). This records the report for Arcjet training and Console visibility — it does not unlock a session and does not require admin approve/deny. Returns editUrl (`/report/error/fprep_…` on this environment's Console) a human can open to add email or more detail. For session-taint unlocks use a clear_taint report via the Console Reviews inbox instead. |
| `ARCJET_MCP_SUBMIT_FEEDBACK` | Submit feedback | Sends product feedback about these tools to the Arcjet team. Use it only when the user explicitly asks to send feedback to Arcjet; do not call it on your own initiative. Describe the tool problem itself; do not include request data, IP addresses, keys or other personal or account data. |
| `ARCJET_MCP_UPDATE_RULE` | Update rule | # Update remote rule Update an existing remote rule for an Arcjet site. This is a full replacement, not a partial patch — all fields must be provided, not just the changed ones. Use list-rules first to get the current rule ID and configuration, modify what you need, and pass the complete updated configuration. Common use cases: adjusting rate limits, adding bot categories, widening or narrowing filter expressions. For filter rules, `allow` and `deny` are mutually exclusive. Use `deny` to block matching traffic (IPs, countries, regions, ASNs, network types) and `allow` to restrict traffic to matching values only. Filter expression syntax and recipes follow. Before changing a rule, check it belongs on this surface at all: the create-rule description has the remote rule vs Guard policy decision. ## Filter rules Use a `filter` rule to allow or deny requests by IP, country, region, continent, ASN, network type, headers, method, or path. Filters match known, well-defined values. They are not a WAF — do not use them to block SQL injection, XSS, or other attack payloads (use `shield` for that). Use `bot` rules for automated clients by category. `allow` and `deny` are mutually exclusive. Provide exactly one: - `deny` — blocklist. Matching requests are denied; everything else is allowed. Use this to block specific IPs, countries, ASNs, or network types. - `allow` — allowlist. Matching requests are allowed; everything else is denied. Use this to restrict traffic to approved countries, networks, or paths. Each allow/deny entry is one expression string. Max 10 expressions per rule, each ≤ 1024 bytes. Multiple expressions in the array are combined with OR. Combine conditions with `and` inside a single expression string. Always create filters in DRY_RUN first. After traffic has been logged, use get-dry-run-impact, then promote-rule. ### Syntax The language is Wireshark-like display filters. Comparisons (`eq`/`==`, `ne`/`!=`, `contains`) are case-sensitive byte matches. Wrap strings in `lower()` / `upper()`, or use `matches` with `(?i)`, for case-insensitive matching. - Strings are double-quoted: `ip.src.country eq "US"`. Escape inner quotes as `\\"`. - IP addresses and CIDR ranges are a special type and must **not** be quoted: `ip.src eq 1.2.3.4`, `ip.src in { 192.0.2.0/24 }`. - Booleans are written as the field name (truthy) or negated: `ip.src.vpn`, `not ip.src.vpn`. - Sets use braces with **space-separated** values (no commas): `ip.src.country in {"US" "CA" "GB"}`. - `eq`/`==` and `ne`/`!=` are aliases. Prefer `eq` / `ne`. - Other operators: `contains`, `matches`/`~` (regex), `in`, `wildcard`, `strict wildcard`, `not`/`!`, `and`/`&&`, `or`/`\|\|`, `gt`/`lt`/`ge`/`le`. - Functions: `len()`, `lower()`, `upper()`. Do not use `ip.src.asn` — the field is `ip.src.asnum`. ### Fields **IP address:** `ip.src` (unquoted IP or CIDR via `in`) **Geography (ISO / English names from the IP database):** - `ip.src.country` — ISO 3166-1 alpha-2 (`"US"`, `"DE"`). Prefer this over `ip.src.country.name`. - `ip.src.country.name` — `"United States"` - `ip.src.region` — English region/state name (`"California"`, `"England"`) - `ip.src.city`, `ip.src.postal_code` - `ip.src.continent` — `"AF"` `"AN"` `"AS"` `"EU"` `"NA"` `"OC"` `"SA"`. Prefer this over `ip.src.continent.name`. **ASN (all string values, so quote them):** - `ip.src.asnum` — Autonomous System number (`"15169"`) - `ip.src.asnum.name` — `"Google, LLC."` - `ip.src.asnum.domain` — `"google.com"` - `ip.src.asnum.country` — ISO country of the ASN - `ip.src.asnum.type` — `"hosting"`, `"isp"`, `"business"`, or `"education"` **Network type (booleans):** - `ip.src.vpn` — VPN exit - `ip.src.tor` — Tor exit - `ip.src.proxy` — open/anonymous or corporate proxy - `ip.src.relay` — privacy relay (e.g. iCloud Private Relay) - `ip.src.hosting` — cloud / data-center / hosting - `ip.src.crawler` — known crawler IP (`ip.src.crawler.name` for the name) - `ip.src.mobile` — mobile carrier There is no `ip.src.residential` field. `not ip.src.hosting` and `ip.src.asnum.type eq "isp"` only approximate some residential traffic and will also match other non-hosting networks (for example mobile). Do not treat those expressions as equivalent to a residential boolean. `investigate-ip` returns `filterAttributes` (country, region, continent, city, ASN, ASN type) and `suggestedFilters` with ready-to-use expressions. Prefer those values over guessing. When mapping `threatIntel.networkTypes` into a filter: `hosting` → `ip.src.hosting`, `vpn` → `ip.src.vpn`, `proxy` → `ip.src.proxy`, `tor` → `ip.src.tor`, `relay` → `ip.src.relay`, `mobile` → `ip.src.mobile`. `residential` has no dedicated boolean. **HTTP:** `http.host`, `http.request.method`, `http.request.uri.path` **Maps:** `http.request.headers["name"]`, `http.request.cookie["name"]`, `http.request.uri.args["name"]` (arg values are percent-decoded; path is the raw encoded path) ### Common recipes Block one IP (deny): `ip.src eq 203.0.113.10` Block several IPs or a CIDR (deny): `ip.src in { 203.0.113.10 198.51.100.0/24 }` Block one country (deny): `ip.src.country eq "RU"` Block several countries (deny): `ip.src.country in {"RU" "KP" "IR"}` Allow only selected countries (allow — everything else is denied): `ip.src.country in {"US" "CA" "GB"}` Block a region/state (deny): `ip.src.region eq "California"` Block a continent (deny): `ip.src.continent eq "EU"` Block an ASN by number (deny), e.g. Google: `ip.src.asnum eq "15169"` Block hosting/cloud ASNs (deny): `ip.src.asnum.type eq "hosting"` Block VPN, Tor, proxies, or hosting networks (deny — one expression each; OR'd): - `ip.src.vpn` - `ip.src.tor` - `ip.src.proxy` - `ip.src.hosting` Block VPN or Tor in one expression (deny): `ip.src.vpn or ip.src.tor` Allow only non-VPN US GET requests (allow): `http.request.method eq "GET" and ip.src.country eq "US" and not ip.src.vpn` Block a user-agent substring, case-insensitive (deny): `lower(http.request.headers["user-agent"]) contains "curl"` Block a path prefix (deny): `http.request.uri.path wildcard "/admin/*"` ### Pitfalls - Quoting an IP is invalid (`ip.src eq "1.2.3.4"` fails). Leave IPs and CIDRs unquoted. - `in` sets are space-separated. Do not write `{"US", "CA"}`. - `allow` is an allowlist (non-matches are denied). Do not put a single-country `allow` when the user asked to block that country — use `deny`. - Filters are literal. `http.request.uri.path contains "login"` does not match `/Login`. - Do not hand-write injection/XSS signatures as filters; use a `shield` rule. - Prefer one focused filter rule over packing unrelated policies into a single expression list. Requires the sites:write permission. |

## Supported Triggers

None listed.

## Installation and MCP Setup

### Path 1: SDK Installation

#### Path 1, Step 1: Install Composio

Install the Composio SDK, the OpenAI provider, and the OpenAI SDK
```python
pip install composio composio_openai openai
```

```typescript
npm install @composio/core @composio/openai openai
```

#### Path 1, Step 2: Create a Composio session

Initialize Composio with the OpenAI Responses provider and create a session scoped to Arcjet MCP
```python
import json
from openai import OpenAI
from composio import Composio
from composio_openai import OpenAIResponsesProvider

composio = Composio(provider=OpenAIResponsesProvider())
client = OpenAI()

session = composio.create(user_id="your-user-id", toolkits=["arcjet_mcp"])
tools = session.tools()
```

```typescript
import OpenAI from "openai";
import { Composio } from "@composio/core";
import { OpenAIResponsesProvider } from "@composio/openai";

const composio = new Composio({ provider: new OpenAIResponsesProvider() });
const client = new OpenAI();

const session = await composio.create("your-user-id", { toolkits: ["arcjet_mcp"] });
const tools = await session.tools();
```

#### Path 1, Step 3: Run Arcjet MCP tools with your agent

Send a request, execute the Arcjet MCP tool calls through the session, and print the final answer
```python
response = client.responses.create(
    model="gpt-5.6-sol",
    tools=tools,
    input=[{"role": "user", "content": "Show anomalous traffic for my Arcjet site from the last 24 hours"}],
)

while True:
    tool_calls = [o for o in response.output if o.type == "function_call"]
    if not tool_calls:
        break
    results = composio.provider.handle_tool_calls(response=response, session=session)
    response = client.responses.create(
        model="gpt-5.6-sol",
        tools=tools,
        previous_response_id=response.id,
        input=[
            {"type": "function_call_output", "call_id": call.call_id, "output": json.dumps(results[i])}
            for i, call in enumerate(tool_calls)
        ],
    )

print(response.output_text)
```

```typescript
let response = await client.responses.create({
  model: "gpt-5.6-sol",
  tools,
  input: [{ role: "user", content: "Show anomalous traffic for my Arcjet site from the last 24 hours" }],
});

while (response.output.some((o) => o.type === "function_call")) {
  const outputs = await composio.provider.handleToolCalls(session, response.output);
  response = await client.responses.create({
    model: "gpt-5.6-sol",
    tools,
    previous_response_id: response.id,
    input: outputs,
  });
}

console.log(response.output_text);
```

### Path 2: MCP Server Setup

#### Path 2, Step 1: Install Composio

Install the Composio SDK and your agent framework
```python
pip install composio claude-agent-sdk
```

```typescript
npm install @composio/core ai @ai-sdk/mcp @ai-sdk/openai
```

#### Path 2, Step 2: Create a session with MCP enabled

Create a session scoped to Arcjet MCP and read its MCP URL and headers
```python
from composio import Composio

composio = Composio()
session = composio.create(user_id="your-user-id", toolkits=["arcjet_mcp"], mcp=True)
```

```typescript
import { Composio } from "@composio/core";

const composio = new Composio();
const { mcp } = await composio.create("your-user-id", {
  toolkits: ["arcjet_mcp"],
  mcp: true,
});
```

#### Path 2, Step 3: Connect your agent to the MCP server

Pass the session's MCP URL and headers to your agent and run a Arcjet MCP request
```python
import asyncio
from claude_agent_sdk import ClaudeSDKClient, ClaudeAgentOptions, AssistantMessage, TextBlock

options = ClaudeAgentOptions(
    mcp_servers={
        "composio": {
            "type": "http",
            "url": session.mcp.url,
            "headers": session.mcp.headers,
        }
    },
    system_prompt="You are a helpful assistant with access to Arcjet MCP tools.",
    tools=[],
    allowed_tools=["mcp__composio__*"],
)

async def main():
    async with ClaudeSDKClient(options=options) as client:
        await client.query("Show anomalous traffic for my Arcjet site from the last 24 hours")
        async for message in client.receive_response():
            if isinstance(message, AssistantMessage):
                for block in message.content:
                    if isinstance(block, TextBlock):
                        print(block.text)

asyncio.run(main())
```

```typescript
import { createMCPClient } from "@ai-sdk/mcp";
import { openai } from "@ai-sdk/openai";
import { generateText, stepCountIs } from "ai";

const client = await createMCPClient({
  transport: { type: "http", url: mcp.url, headers: mcp.headers },
});

const { text } = await generateText({
  model: openai("gpt-5.6-sol"),
  tools: await client.tools(),
  prompt: "Show anomalous traffic for my Arcjet site from the last 24 hours",
  stopWhen: stepCountIs(10),
});

console.log(text);
await client.close();
```

## Why Use Composio?

### 1. AI Native Arcjet MCP Integration

- Supports both Arcjet MCP and direct API based integrations
- Structured, LLM-friendly schemas for reliable security tool execution
- Rich coverage for inspecting teams, sites, quotas, requests, decisions, anomalies, and remote rules

### 2. Managed Auth

- Connect your DCR OAuth credentials without building custom credential flows
- Central place to manage, scope, and revoke Arcjet MCP access
- Per user and per environment credentials instead of hard-coded secrets

### 3. Agent Optimized Design

- Tools are tuned using real error and success rates to improve reliability over time
- Comprehensive execution logs so you always know what ran, when, and on whose behalf

### 4. Enterprise Grade Security

- Fine-grained RBAC so you control which agents and users can access Arcjet MCP
- Scoped, least privilege access to Arcjet teams, sites, traffic data, and rules
- Full audit trail of agent actions to support review and compliance

## Use Arcjet MCP with any AI Agent Framework

Choose a framework you want to connect Arcjet MCP with:

- [ChatGPT](https://composio.dev/toolkits/arcjet_mcp/framework/chatgpt)
- [Claude Cowork](https://composio.dev/toolkits/arcjet_mcp/framework/claude-cowork)

## Related Toolkits

- [Supabase](https://composio.dev/toolkits/supabase) - Supabase is an open-source backend platform offering scalable Postgres databases, authentication, storage, and real-time APIs. It lets developers build modern apps without managing infrastructure.
- [Codeinterpreter](https://composio.dev/toolkits/codeinterpreter) - Codeinterpreter is a Python-based coding environment with built-in data analysis and visualization. It lets you instantly run scripts, plot results, and prototype solutions inside supported platforms.
- [GitHub](https://composio.dev/toolkits/github) - GitHub is a code hosting platform for version control and collaborative software development. It streamlines project management, code review, and team workflows in one place.
- [1password](https://composio.dev/toolkits/_1password) - 1Password is a password manager and digital vault for storing logins, secrets, notes, and secure documents. It helps individuals and teams protect credentials, share access safely, and reduce password risk.
- [21st MCP](https://composio.dev/toolkits/21st_mcp) - 21st MCP is a hosted design resource service for React/shadcn components, themes, templates, and SVG logos. It gives teams a fast way to discover, organize, and reuse polished interface assets.
- [Ably](https://composio.dev/toolkits/ably) - Ably is a real-time messaging platform for live chat and data sync in modern apps. It offers global scale and rock-solid reliability for seamless, instant experiences.
- [Abuselpdb](https://composio.dev/toolkits/abuselpdb) - Abuselpdb is a central database for reporting and checking IPs linked to malicious online activity. Use it to quickly identify and report suspicious or abusive IP addresses.
- [Agent37](https://composio.dev/toolkits/agent37) - Agent37 is a control API for managed agent sandboxes, templates, networking, and execution. It gives teams built-in scheduling, observability, budgets, and workspace administration.
- [Aikido Security](https://composio.dev/toolkits/aikido) - Aikido Security is a security platform for workspace, code, cloud, and application protection. It helps teams find vulnerabilities, manage compliance, and reduce security risk.
- [Alchemy](https://composio.dev/toolkits/alchemy) - Alchemy is a blockchain development platform offering APIs and tools for Ethereum apps. It simplifies building and scaling Web3 projects with robust infrastructure.
- [Algolia](https://composio.dev/toolkits/algolia) - Algolia is a hosted search API that powers lightning-fast, relevant search experiences for web and mobile apps. It helps developers deliver instant, typo-tolerant, and scalable search without complex infrastructure.
- [Anakin](https://composio.dev/toolkits/anakin_io) - Anakin is a web automation platform offering scraping, crawling, search, and browser automation. Use it to extract structured data, automate site tasks, and monitor web changes reliably.
- [Anchor browser](https://composio.dev/toolkits/anchor_browser) - Anchor browser is a developer platform for AI-powered web automation. It transforms complex browser actions into easy API endpoints for streamlined web interaction.
- [Anchor Browser MCP](https://composio.dev/toolkits/anchor_browser_mcp) - Anchor Browser MCP is a hosted browser automation service for running cloud browser sessions and web tasks. It provides secure, reusable browser identities and managed authentication for reliable agent workflows.
- [AnyAPI](https://composio.dev/toolkits/anyapi) - AnyAPI is a marketplace of utility APIs for validation, currency conversion, holidays, documents, and web data. It brings common application workflows together through one practical API platform.
- [Apiflash](https://composio.dev/toolkits/apiflash) - Apiflash is a website screenshot API for programmatically capturing web pages. It delivers high-quality screenshots on demand for automation, monitoring, or reporting.
- [Apiverve](https://composio.dev/toolkits/apiverve) - Apiverve delivers a suite of powerful APIs that simplify integration for developers. It's designed for reliability and scalability so you can build faster, smarter applications without the integration headache.
- [APIVerve MCP](https://composio.dev/toolkits/apiverve_mcp) - APIVerve MCP is a hosted utility API server for lookups, validation, conversion, and data enrichment. It gives developers one MCP connection to access APIVerve's utility APIs.
- [Appcircle](https://composio.dev/toolkits/appcircle) - Appcircle is an enterprise-grade mobile CI/CD platform for building, testing, and publishing mobile apps. It streamlines mobile DevOps so teams ship faster and with more confidence.
- [Appdrag](https://composio.dev/toolkits/appdrag) - Appdrag is a cloud platform for building websites, APIs, and databases with drag-and-drop tools and code editing. It accelerates development and iteration by combining hosting, database management, and low-code features in one place.

## Frequently Asked Questions

### Do I need my own developer credentials to use Arcjet MCP with Composio?

Yes, Arcjet MCP requires you to configure your own Dcr OAuth credentials. Once set up, Composio handles secure credential storage and management for you.

### Can I use multiple toolkits together?

Yes! Composio's Tool Router enables agents to use multiple toolkits. [Learn more](https://docs.composio.dev/tool-router/overview).

### Is Composio secure?

Composio is SOC 2 and ISO 27001 compliant with all data encrypted in transit and at rest. [Learn more](https://trust.composio.dev).

### What if the API changes?

Composio maintains and updates all toolkit integrations automatically, so your agents always work with the latest API versions.

---
[See all toolkits](https://composio.dev/toolkits) · [Composio docs](https://docs.composio.dev/llms.txt)
