mcp
Arcjet is a Model Context Protocol (MCP) server designed to enhance application security for developers. It provides tools for bot detection, rate limiting, and more, ensuring apps are protected efficiently.
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.
- 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.
Cursor
-
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.