Install
Add to ~/Library/Application Support/Claude/claude_desktop_config.json
Windows / Linux path
%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.json{
"mcpServers": {
"io-github-mm-sheng-404-directory": {
"command": "npx",
"args": [
"-y",
"@mmvv1638/404-directory-mcp"
],
"env": {
"HOST": "<VALUE>",
"PORT": "<VALUE>",
"DATABASE_URL": "<VALUE>",
"PUBLIC_BASE_URL": "<VALUE>",
"TOOL_RATE_LIMIT_MAX": "<VALUE>",
"REGISTRY_ADMIN_TOKEN": "<VALUE>",
"REGISTRY_REQUIRE_AUTH": "<VALUE>",
"MCP_GATEWAY_TIMEOUT_MS": "<VALUE>",
"SEED_FIRST_PARTY_TOOLS": "<VALUE>",
"CATALOG_MEMORY_FALLBACK": "<VALUE>",
"SEED_CURATED_MCP_SERVERS": "<VALUE>",
"VERIFICATION_WORKER_MODE": "inline",
"BROWSER_EGRESS_ALLOWED_PORTS": "80,443",
"MCP_GATEWAY_MAX_RESULT_BYTES": "<VALUE>"
}
}
}
}
Restart Claude Desktop to activate the new server.
Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
Windows / Linux path
.cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global).cursor/mcp.json (project) or ~/.cursor/mcp.json (global){
"mcpServers": {
"io-github-mm-sheng-404-directory": {
"command": "npx",
"args": [
"-y",
"@mmvv1638/404-directory-mcp"
],
"env": {
"HOST": "<VALUE>",
"PORT": "<VALUE>",
"DATABASE_URL": "<VALUE>",
"PUBLIC_BASE_URL": "<VALUE>",
"TOOL_RATE_LIMIT_MAX": "<VALUE>",
"REGISTRY_ADMIN_TOKEN": "<VALUE>",
"REGISTRY_REQUIRE_AUTH": "<VALUE>",
"MCP_GATEWAY_TIMEOUT_MS": "<VALUE>",
"SEED_FIRST_PARTY_TOOLS": "<VALUE>",
"CATALOG_MEMORY_FALLBACK": "<VALUE>",
"SEED_CURATED_MCP_SERVERS": "<VALUE>",
"VERIFICATION_WORKER_MODE": "inline",
"BROWSER_EGRESS_ALLOWED_PORTS": "80,443",
"MCP_GATEWAY_MAX_RESULT_BYTES": "<VALUE>"
}
}
}
}
Cursor usually picks up config changes automatically; if the server does not appear, reload the window.
Add to .mcp.json (project) or ~/.claude.json (global)
Windows / Linux path
.mcp.json (project) or %USERPROFILE%\.claude.json (global).mcp.json (project) or ~/.claude.json (global){
"mcpServers": {
"io-github-mm-sheng-404-directory": {
"command": "npx",
"args": [
"-y",
"@mmvv1638/404-directory-mcp"
],
"env": {
"HOST": "<VALUE>",
"PORT": "<VALUE>",
"DATABASE_URL": "<VALUE>",
"PUBLIC_BASE_URL": "<VALUE>",
"TOOL_RATE_LIMIT_MAX": "<VALUE>",
"REGISTRY_ADMIN_TOKEN": "<VALUE>",
"REGISTRY_REQUIRE_AUTH": "<VALUE>",
"MCP_GATEWAY_TIMEOUT_MS": "<VALUE>",
"SEED_FIRST_PARTY_TOOLS": "<VALUE>",
"CATALOG_MEMORY_FALLBACK": "<VALUE>",
"SEED_CURATED_MCP_SERVERS": "<VALUE>",
"VERIFICATION_WORKER_MODE": "inline",
"BROWSER_EGRESS_ALLOWED_PORTS": "80,443",
"MCP_GATEWAY_MAX_RESULT_BYTES": "<VALUE>"
}
}
}
}
The server will be available in the next Claude Code session.
Add to .vscode/mcp.json
Windows / Linux path
.vscode\mcp.json.vscode/mcp.json{
"servers": {
"io-github-mm-sheng-404-directory": {
"command": "npx",
"args": [
"-y",
"@mmvv1638/404-directory-mcp"
],
"env": {
"HOST": "<VALUE>",
"PORT": "<VALUE>",
"DATABASE_URL": "<VALUE>",
"PUBLIC_BASE_URL": "<VALUE>",
"TOOL_RATE_LIMIT_MAX": "<VALUE>",
"REGISTRY_ADMIN_TOKEN": "<VALUE>",
"REGISTRY_REQUIRE_AUTH": "<VALUE>",
"MCP_GATEWAY_TIMEOUT_MS": "<VALUE>",
"SEED_FIRST_PARTY_TOOLS": "<VALUE>",
"CATALOG_MEMORY_FALLBACK": "<VALUE>",
"SEED_CURATED_MCP_SERVERS": "<VALUE>",
"VERIFICATION_WORKER_MODE": "inline",
"BROWSER_EGRESS_ALLOWED_PORTS": "80,443",
"MCP_GATEWAY_MAX_RESULT_BYTES": "<VALUE>"
}
}
}
}
Reload the VS Code window to activate.
Add to ~/.codeium/windsurf/mcp_config.json
Windows / Linux path
%USERPROFILE%\.codeium\windsurf\mcp_config.json~/.codeium/windsurf/mcp_config.json{
"mcpServers": {
"io-github-mm-sheng-404-directory": {
"command": "npx",
"args": [
"-y",
"@mmvv1638/404-directory-mcp"
],
"env": {
"HOST": "<VALUE>",
"PORT": "<VALUE>",
"DATABASE_URL": "<VALUE>",
"PUBLIC_BASE_URL": "<VALUE>",
"TOOL_RATE_LIMIT_MAX": "<VALUE>",
"REGISTRY_ADMIN_TOKEN": "<VALUE>",
"REGISTRY_REQUIRE_AUTH": "<VALUE>",
"MCP_GATEWAY_TIMEOUT_MS": "<VALUE>",
"SEED_FIRST_PARTY_TOOLS": "<VALUE>",
"CATALOG_MEMORY_FALLBACK": "<VALUE>",
"SEED_CURATED_MCP_SERVERS": "<VALUE>",
"VERIFICATION_WORKER_MODE": "inline",
"BROWSER_EGRESS_ALLOWED_PORTS": "80,443",
"MCP_GATEWAY_MAX_RESULT_BYTES": "<VALUE>"
}
}
}
}
Restart Windsurf (or refresh its MCP servers panel) to activate the new server.
Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.
Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
Windows / Linux path
%APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json{
"mcpServers": {
"io-github-mm-sheng-404-directory": {
"command": "npx",
"args": [
"-y",
"@mmvv1638/404-directory-mcp"
],
"env": {
"HOST": "<VALUE>",
"PORT": "<VALUE>",
"DATABASE_URL": "<VALUE>",
"PUBLIC_BASE_URL": "<VALUE>",
"TOOL_RATE_LIMIT_MAX": "<VALUE>",
"REGISTRY_ADMIN_TOKEN": "<VALUE>",
"REGISTRY_REQUIRE_AUTH": "<VALUE>",
"MCP_GATEWAY_TIMEOUT_MS": "<VALUE>",
"SEED_FIRST_PARTY_TOOLS": "<VALUE>",
"CATALOG_MEMORY_FALLBACK": "<VALUE>",
"SEED_CURATED_MCP_SERVERS": "<VALUE>",
"VERIFICATION_WORKER_MODE": "inline",
"BROWSER_EGRESS_ALLOWED_PORTS": "80,443",
"MCP_GATEWAY_MAX_RESULT_BYTES": "<VALUE>"
}
}
}
}
Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.
Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.
Configuration
Environment variables this server reads. Secrets stay on your machine.
| Name | Required | Description |
|---|---|---|
| HOST | No | Host interface to bind, e.g. 0.0.0.0 |
| PORT | No | Port to listen on, e.g. 8080 |
| DATABASE_URL | No | PostgreSQL connection string for the catalog backend. If not set, the server uses an in-memory fallback when CATALOG_MEMORY_FALLBACK=true (the local default). |
| PUBLIC_BASE_URL | No | Public base URL of the service, for example https://404.directory |
| TOOL_RATE_LIMIT_MAX | No | Stricter rate limit maximum for tool execution, as a string representation of a number. |
| REGISTRY_ADMIN_TOKEN | No | Admin token for registry write APIs. Required in production but auto-generated in local development. |
| REGISTRY_REQUIRE_AUTH | No | If true, registry write APIs require authentication. Set to true in production. |
| MCP_GATEWAY_TIMEOUT_MS | No | Timeout, in milliseconds, for external calls through the remote MCP gateway. |
| SEED_FIRST_PARTY_TOOLS | No | Set to 'true' to seed first-party tools into the catalog on boot. |
| CATALOG_MEMORY_FALLBACK | No | When true, use an in-memory catalog instead of the database. Defaults to true for local development; set to false when DATABASE_URL is configured. |
| SEED_CURATED_MCP_SERVERS | No | Set to 'true' to seed curated MCP servers as pending entries for verification. |
| VERIFICATION_WORKER_MODE | No | Specifies whether the verification worker runs inline in the HTTP process (default) or as an external worker. Use 'external' for production serverless deployments. Default: inline |
| BROWSER_EGRESS_ALLOWED_PORTS | No | Comma-separated allowed egress ports for browser-based tools. Defaults to 80,443 Default: 80,443 |
| MCP_GATEWAY_MAX_RESULT_BYTES | No | Maximum size, in bytes, for results from the remote MCP gateway. |
Remote headers
HTTP headers the remote endpoint expects.
| Name | Required | Description |
|---|---|---|
| X-404-Agent-ID | Yes | Stable random, non-personal identifier for this Agent installation. Used only for privacy-safe de-duplicated adoption measurement; never use an email, user name, or device name. |
| X-404-Source | No | Non-personal attribution label for this installation source. Default: official-registry |