Arcjet MCP Server

Local setup required. This server has to be cloned and prepared on your machine before you register it in Claude Code.
1

Set the server up locally

Run this once to clone and prepare the server before adding it to Claude Code.

Run in terminal
npm install
npm run build
2

Register it in Claude Code

After the local setup is done, run this command to point Claude Code at the built server.

Run in terminal
claude mcp add -e "ARCJET_API_KEY=${ARCJET_API_KEY}" arcjet -- node "<FULL_PATH_TO_MCP>/dist/index.js"

Replace <FULL_PATH_TO_MCP>/dist/index.js with the actual folder you prepared in step 1.

Required:ARCJET_API_KEY
README.md

Provides AI agents with context for integrating Arcjet security features.

<source media="(prefers-color-scheme: dark)" srcset="https://arcjet.com/logo/arcjet-dark-lockup-voyage-horizontal.svg">

Arcjet - MCP Server

Arcjet helps developers protect their apps in just a few lines of code. Bot detection. Rate limiting. Email validation. Attack protection. Data redaction. A developer-first approach to security.

This is the Arcjet Model Context Protocol (MCP) server. It provides AI agents with useful context that will help you integrate Arcjet into your application and retrieve information from Arcjet about processed requests.

Features

  • List teams and sites.

Setup

`ARCJET_API_KEY`

[!IMPORTANT] Arcjet does not currently have public API keys, so you need to grab an auth session ID as the ARCJET_API_KEY. We're working on proper API key management.

  1. Log in to your Arcjet account.
  2. Open the developer tools in your browser.
  3. Go to the Application tab -> Storage -> Cookies.
  4. Use the value (a UUID) of the session cookie as the ARCJET_API_KEY in the mcp.json file below.

Cursor

  1. Clone this repository locally.

  2. Run npm install and npm run build.

  3. Open Cursor settings (Cmd+Shift+P > Cursor Settings) > MCP > Add new MCP server.

  4. Add the following into the mcp.json file:

    {
      "mcpServers": {
        "arcjet": {
          "command": "node",
          "args": ["/PATH/TO/mcp/index.js"],
          "env": {
            "ARCJET_API_KEY": "YOUR_KEY_HERE"
          }
        }
      }
    }
    

    Replace /PATH/TO/mcp/index.js with the absolute path to index.js in this repo. For example, if you cloned the repository to your Downloads folder on macOS for the user totoro then this would be: /Users/totoro/Downloads/mcp/index.js

  5. In the Cursor MCP settings, ensure the arcjet MCP server shows as enabled.

VS Code (GitHub Copilot)

  1. Clone this repository locally.

  2. Run npm install and npm run build.

  3. Enable MCP support in VS Code by setting chat.mcp.enabled to true in your settings.

  4. Create a .vscode/mcp.json file in your workspace with the following configuration:

    {
      "servers": {
        "arcjet": {
          "command": "node",
          "args": ["/PATH/TO/mcp/index.js"],
          "env": {
            "ARCJET_API_KEY": "YOUR_KEY_HERE"
          }
        }
      }
    }
    

    Replace /PATH/TO/mcp/index.js with the absolute path to index.js in this repo. For example, if you cloned the repository to your Downloads folder on macOS for the user totoro then this would be: /Users/totoro/Downloads/mcp/index.js

  5. Restart VS Code or run the "MCP: Restart Server" command to load the server.

  6. Open the Chat view (Ctrl+Alt+I / Cmd+Option+I) and select "Agent mode" from the dropdown.

  7. Click the "Tools" button to see the available Arcjet tools and confirm the server is running.

Get help

Join our Discord server or reach out for support.

Environment Variables

ARCJET_API_KEYrequiredThe session cookie value (UUID) from your Arcjet account.

Configuration

claude_desktop_config.json
{"mcpServers": {"arcjet": {"command": "node", "args": ["/PATH/TO/mcp/index.js"], "env": {"ARCJET_API_KEY": "YOUR_KEY_HERE"}}}}

Try it

List all the sites currently configured in my Arcjet account.
Show me the list of teams associated with my Arcjet account.
Help me understand how to integrate Arcjet rate limiting into my application.

Frequently Asked Questions

What are the key features of Arcjet?

List teams associated with the Arcjet account. List sites associated with the Arcjet account. Provides context for integrating security features like bot detection and rate limiting.

What can I use Arcjet for?

Developers needing to quickly retrieve site and team configuration data within their AI-assisted coding environment.. Teams integrating Arcjet security features who want to query their account status directly via chat.. Security engineers managing multiple Arcjet-protected sites through an AI agent interface..

How do I install Arcjet?

Install Arcjet by running: npm install && npm run build

What MCP clients work with Arcjet?

Arcjet works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep Arcjet docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Need the old visual installer? Open Conare IDE.
Open Conare