Copilot CLI
1. Add Firecrawl
~/.copilot/mcp-config.json. You can also run /mcp add inside an interactive session and choose the HTTP type, or edit the file directly:
~/.copilot/mcp-config.json
2. Sign in and verify
/mcp to confirm that firecrawl is connected.
Use an API key instead
For unattended use, create a Firecrawl API key, export it asFIRECRAWL_API_KEY, and add the API-key endpoint with a bearer header:
~/.copilot/mcp-config.json, so keep that file out of source control.
VS Code
1. Add Firecrawl
Run MCP: Add Server from the Command Palette and choose HTTP, or create.vscode/mcp.json in your workspace:
.vscode/mcp.json
2. Sign in and verify
Start the server from themcp.json editor or with MCP: List Servers. When VS Code asks to authenticate, allow it and complete the Firecrawl sign-in in your browser. Then open Copilot Chat in Agent mode and select the tools icon to confirm that Firecrawl’s tools are listed.
Use an API key instead
Use the API-key endpoint and let VS Code prompt for the key, so it is stored securely instead of written to the file:.vscode/mcp.json
Copilot coding agent
The Copilot coding agent (also called Copilot cloud agent) works on issues and pull requests in GitHub. Its repository MCP settings do not support remote servers that use OAuth, so this setup stores a Firecrawl API key as an Agents secret and sends it as a header.Requirements
- A paid GitHub Copilot plan with the coding agent enabled for the repository.
- Repository administrator access, which is needed to edit MCP settings and Agents secrets.
- A Firecrawl API key.
Set it up
- In your repository, open Settings, then Secrets and variables, then Agents.
- Select New repository secret, name it
COPILOT_MCP_FIRECRAWL_API_KEY, paste your Firecrawl API key, and save. Copilot only passes Agents secrets whose names start withCOPILOT_MCP_to MCP servers. - Open Settings, then Copilot, then MCP servers.
- Paste this configuration into MCP configuration and select Save MCP configuration:
- Assign an issue to Copilot. When its pull request appears, choose View session, open the Start MCP Servers step in the logs, and confirm that the Firecrawl tools are listed.
Try it
Troubleshooting
- Tools do not appear: confirm that only one
firecrawlserver is configured, then restart Copilot CLI, or run MCP: List Servers in VS Code and restart the server. - Sign-in is required again or returns
401: restart the server and complete the browser sign-in. A bare request to the OAuth server is expected to return401before authentication. - An API-key connection returns
401: confirm that the URL ishttps://mcp.firecrawl.dev/v2/mcp(not/v2/mcp-oauth) and that the header isAuthorization: Bearer <FIRECRAWL_API_KEY>. - Organization policy: if your GitHub organization restricts MCP servers in Copilot, an administrator must allow Firecrawl before it can connect.
- Coding agent: the Firecrawl tools are missing from the session log: confirm the secret name is exactly
COPILOT_MCP_FIRECRAWL_API_KEYand that it is an Agents secret, not an Actions secret.

