
Deploy Firecrawl MCP
Firecrawl's official MCP server: web search and scraping for AI agents
Firecrawl MCP
Just deployed
Deploy and Host Firecrawl MCP on Railway
Firecrawl MCP is Firecrawl's official Model Context Protocol server. It gives AI assistants and agents (Claude, Cursor, VS Code, ChatGPT connectors, your own agents) tools to search the web, scrape pages to clean markdown or JSON, map and crawl sites, run research agents and parse documents, using your Firecrawl API key. This template runs it remotely over streamable HTTP.
About Hosting Firecrawl MCP
This template builds one service from a public repo: the official Firecrawl MCP server v3.36.1 image, pinned by digest, listening only on loopback, with a small Caddy front on Railway's PORT. Caddy lets a request through only when it carries the generated MCP_AUTH_TOKEN as a bearer token, so your Firecrawl credits can't be spent by anyone who finds the URL. You paste one value at deploy time: your Firecrawl API key. The server keeps no data, so it needs no volume or database. It uses about 130 MB of RAM under load and fits the 0.5 GB of Railway's smallest plan.
Common Use Cases
- Give a remote AI client or agent web search and page scraping without running a local process
- Let an agent crawl or map a documentation site and read it as markdown
- Share one Firecrawl endpoint across several agents or machines with a single bearer token
Dependencies for Firecrawl MCP Hosting
- A Firecrawl API key (free tier available at firecrawl.dev), or your own self-hosted Firecrawl API
- An MCP client that supports remote streamable-HTTP servers with a custom header (or a URL with the token in its path)
Deployment Dependencies
Implementation Details
Services: one service, Firecrawl MCP: the official server plus a Caddy bearer-token check. Health check: /health.
Variables:
FIRECRAWL_API_KEY(required): your Firecrawl API key, starting withfc-. Create one at firecrawl.dev/app/api-keys. Every tool call spends its credits.MCP_AUTH_TOKEN(generated): the bearer token your MCP client must send. Copy it from the service's Variables tab after deploy.
After deploy: copy the public URL and MCP_AUTH_TOKEN, then add the server to your client. The MCP endpoint is /mcp. For example, VS Code (.vscode/mcp.json) or any client that takes this format:
{
"servers": {
"firecrawl": {
"type": "http",
"url": "https://YOUR-DOMAIN.up.railway.app/mcp",
"headers": { "Authorization": "Bearer YOUR-MCP_AUTH_TOKEN" }
}
}
}
Claude Code: claude mcp add --transport http firecrawl https://YOUR-DOMAIN.up.railway.app/mcp --header "Authorization: Bearer YOUR-MCP_AUTH_TOKEN".
Clients that can't send headers (some web connectors) can use https://YOUR-DOMAIN.up.railway.app/YOUR-MCP_AUTH_TOKEN/mcp instead. Treat that URL as a secret.
Self-hosted Firecrawl: to use your own Firecrawl API instead of the cloud (for example our Firecrawl template), add FIRECRAWL_API_URL (for example http://firecrawl.railway.internal:8080 or its public URL) and set FIRECRAWL_API_KEY to that instance's key.
Limits: firecrawl_parse reads files from the server's own disk in this mode, so a remote client can't use it; send document URLs to firecrawl_scrape instead.
Security: anyone with the URL and MCP_AUTH_TOKEN can spend your Firecrawl credits. To rotate it, change MCP_AUTH_TOKEN and redeploy.
Updates: the service builds from the template repo, which pins the upstream release by version and digest. When we bump it, Railway shows an "update available" notice on your project; read the repo's CHANGELOG.md and apply it when you choose.
Why Deploy Firecrawl MCP on Railway?
Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.
By deploying Firecrawl MCP on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.
Template Content
Firecrawl MCP
aalfath/firecrawl-mcp-railway-templateFIRECRAWL_API_KEY
Your Firecrawl API key (starts with fc-). Create one at https://www.firecrawl.dev/app/api-keys. Every tool call spends its credits.

