TypeScript MCP server for Crawl4AI with tools for web crawling, content extraction and browser automation.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
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>"
}
}
}
}需要的环境变量
CRAWL4AI_BASE_URLCRAWL4AI_API_KEYSERVER_NAMESERVER_VERSION
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。