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.
- List teams and sites.
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.
- Log in to your Arcjet account.
- Open the developer tools in your browser.
- Go to the Application tab -> Storage -> Cookies.
- Use the value (a UUID) of the
sessioncookie as theARCJET_API_KEYin themcp.jsonfile below.
-
Clone this repository locally.
-
Run
npm installandnpm run build. -
Open Cursor settings (Cmd+Shift+P > Cursor Settings) > MCP > Add new MCP server.
-
Add the following into the
mcp.jsonfile:{ "mcpServers": { "arcjet": { "command": "node", "args": ["/PATH/TO/mcp/index.js"], "env": { "ARCJET_API_KEY": "YOUR_KEY_HERE" } } } }Replace
/PATH/TO/mcp/index.jswith the absolute path toindex.jsin this repo. For example, if you cloned the repository to your Downloads folder on macOS for the usertotorothen this would be:/Users/totoro/Downloads/mcp/index.js -
In the Cursor MCP settings, ensure the
arcjetMCP server shows as enabled.
-
Clone this repository locally.
-
Run
npm installandnpm run build. -
Enable MCP support in VS Code by setting
chat.mcp.enabledtotruein your settings. -
Create a
.vscode/mcp.jsonfile 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.jswith the absolute path toindex.jsin this repo. For example, if you cloned the repository to your Downloads folder on macOS for the usertotorothen this would be:/Users/totoro/Downloads/mcp/index.js -
Restart VS Code or run the "MCP: Restart Server" command to load the server.
-
Open the Chat view (Ctrl+Alt+I / Cmd+Option+I) and select "Agent mode" from the dropdown.
-
Click the "Tools" button to see the available Arcjet tools and confirm the server is running.