https://github.com/arcjet/mcp
Arcjet Model Context Protocol (MCP) server. Help your AI agents implement bot detection, rate limiting, email validation, attack protection, data redaction.
https://github.com/arcjet/mcp
bot-detection devtools mcp mcp-server security
Last synced: 17 days ago
JSON representation
Arcjet Model Context Protocol (MCP) server. Help your AI agents implement bot detection, rate limiting, email validation, attack protection, data redaction.
- Host: GitHub
- URL: https://github.com/arcjet/mcp
- Owner: arcjet
- License: apache-2.0
- Created: 2025-03-31T18:33:00.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-08-27T07:25:44.000Z (9 months ago)
- Last Synced: 2025-08-28T16:49:42.094Z (9 months ago)
- Topics: bot-detection, devtools, mcp, mcp-server, security
- Language: TypeScript
- Homepage:
- Size: 201 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
- awesome-mcp-servers - **mcp** - Arcjet Model Context Protocol (MCP) server. Help your AI agents implement bot detection, rate limiting, email validation, attack protection, data redaction. `typescript` `bot-detection` `devtools` `mcp` `mcp-server` `npm install arcjet/mcp` (Authentication)
README
# Arcjet - MCP Server
[Arcjet](https://arcjet.com) 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](https://modelcontextprotocol.io/)
(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](https://app.arcjet.com).
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:
```json
{
"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:
```json
{
"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](https://arcjet.com/discord) or [reach out for
support](https://docs.arcjet.com/support).