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
session
cookie as theARCJET_API_KEY
in themcp.json
file below.
-
Clone this repository locally.
-
Run
npm install
andnpm run build
. -
Open Cursor settings (Cmd+Shift+P > Cursor Settings) > MCP > Add new MCP server.
-
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 toindex.js
in this repo. For example, if you cloned the repository to your Downloads folder on macOS for the usertotoro
then this would be:/Users/totoro/Downloads/mcp/index.js
-
In the Cursor MCP settings, ensure the
arcjet
MCP server shows as enabled.