TypeScript MCP server for Crawl4AI with tools for web crawling, content extraction and browser automation.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add crawl4ai-typescript --env CRAWL4AI_BASE_URL='<CRAWL4AI_BASE_URL>' --env CRAWL4AI_API_KEY='<CRAWL4AI_API_KEY>' --env SERVER_NAME='<SERVER_NAME>' --env SERVER_VERSION='<SERVER_VERSION>' -- node /path/to/mcp-crawl4ai-ts/dist/index.js~/.codex/config.toml
[mcp_servers.crawl4ai-typescript]
command = "node"
args = ["/path/to/mcp-crawl4ai-ts/dist/index.js"]
env = { CRAWL4AI_BASE_URL = "<CRAWL4AI_BASE_URL>", CRAWL4AI_API_KEY = "<CRAWL4AI_API_KEY>", SERVER_NAME = "<SERVER_NAME>", SERVER_VERSION = "<SERVER_VERSION>" }
# codex mcp add crawl4ai-typescript --env CRAWL4AI_BASE_URL='<CRAWL4AI_BASE_URL>' --env CRAWL4AI_API_KEY='<CRAWL4AI_API_KEY>' --env SERVER_NAME='<SERVER_NAME>' --env SERVER_VERSION='<SERVER_VERSION>' -- node /path/to/mcp-crawl4ai-ts/dist/index.js~/.cursor/mcp.json
{
"mcpServers": {
"crawl4ai-typescript": {
"command": "node",
"args": [
"/path/to/mcp-crawl4ai-ts/dist/index.js"
],
"env": {
"CRAWL4AI_BASE_URL": "<CRAWL4AI_BASE_URL>",
"CRAWL4AI_API_KEY": "<CRAWL4AI_API_KEY>",
"SERVER_NAME": "<SERVER_NAME>",
"SERVER_VERSION": "<SERVER_VERSION>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"crawl4ai-typescript": {
"type": "stdio",
"command": "node",
"args": [
"/path/to/mcp-crawl4ai-ts/dist/index.js"
],
"env": {
"CRAWL4AI_BASE_URL": "<CRAWL4AI_BASE_URL>",
"CRAWL4AI_API_KEY": "<CRAWL4AI_API_KEY>",
"SERVER_NAME": "<SERVER_NAME>",
"SERVER_VERSION": "<SERVER_VERSION>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"crawl4ai-typescript": {
"command": "node",
"args": [
"/path/to/mcp-crawl4ai-ts/dist/index.js"
],
"env": {
"CRAWL4AI_BASE_URL": "<CRAWL4AI_BASE_URL>",
"CRAWL4AI_API_KEY": "<CRAWL4AI_API_KEY>",
"SERVER_NAME": "<SERVER_NAME>",
"SERVER_VERSION": "<SERVER_VERSION>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"crawl4ai-typescript": {
"command": "node",
"args": [
"/path/to/mcp-crawl4ai-ts/dist/index.js"
],
"env": {
"CRAWL4AI_BASE_URL": "<CRAWL4AI_BASE_URL>",
"CRAWL4AI_API_KEY": "<CRAWL4AI_API_KEY>",
"SERVER_NAME": "<SERVER_NAME>",
"SERVER_VERSION": "<SERVER_VERSION>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"crawl4ai-typescript": {
"command": "node",
"args": [
"/path/to/mcp-crawl4ai-ts/dist/index.js"
],
"env": {
"CRAWL4AI_BASE_URL": "<CRAWL4AI_BASE_URL>",
"CRAWL4AI_API_KEY": "<CRAWL4AI_API_KEY>",
"SERVER_NAME": "<SERVER_NAME>",
"SERVER_VERSION": "<SERVER_VERSION>"
}
}
}
}Environment variables
CRAWL4AI_BASE_URLCRAWL4AI_API_KEYSERVER_NAMESERVER_VERSION
Replace the placeholders with your own credentials and keep them out of version control.