---
title: "Deploy Firecrawl MCP"
description: "Firecrawl's official MCP server: web search and scraping for AI agents"
category: "AI/ML"
url: https://railway.com/deploy/firecrawl-mcp
---

# Deploy Firecrawl MCP

Firecrawl's official MCP server: web search and scraping for AI agents

**[Deploy Firecrawl MCP on Railway](https://railway.com/template/firecrawl-mcp)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/firecrawl-mcp/manifest.json

- **Creator:** Agaz Self-Host
- **Category:** AI/ML

## Template content

### Firecrawl MCP https://raw.githubusercontent.com/firecrawl/firecrawl-mcp-server/v3.36.1/img/fire.png

- **Source:** https://github.com/aalfath/firecrawl-mcp-railway-template
- **Health check:** /health
- **Public domain:** Yes

## Documentation

# 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

* [Firecrawl MCP Server on GitHub](https://github.com/firecrawl/firecrawl-mcp-server)
* [Release v3.36.1](https://github.com/firecrawl/firecrawl-mcp-server/releases/tag/v3.36.1)
* [Get a Firecrawl API key](https://www.firecrawl.dev/app/api-keys)
* [Template repo](https://github.com/aalfath/firecrawl-mcp-railway-template)

### 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 with `fc-`. 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:

```json
{
  "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.



## Similar templates

- [Chat Chat](https://railway.com/deploy/-WWW5r) — Chat Chat, your own unified chat and search to AI platform.
- [Weaviate](https://railway.com/deploy/weaviate-1) — Vector database with hybrid search and an API key-protected API
- [Möbius Personal AI OS](https://railway.com/deploy/mobius-v01-personal-ai-os) — Self-hosted AI agent that builds and runs apps for you, with memory.

Open this page in a browser: https://railway.com/deploy/firecrawl-mcp
