brave-search-mcp-cloudflare
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@brave-search-mcp-cloudflaresearch the web for climate change reports"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
brave-search-mcp-cloudflare
A remote MCP server that wraps the official Brave Search MCP server and deploys it as a Cloudflare Worker with Durable Objects.
The official repo supports only stdio/Express transports. This project makes it a proper remote MCP server reachable over HTTP — usable by any MCP-compatible client without running a local process.
Tools
All 6 Brave Search tools are available:
Tool | Description |
| General web search |
| News search |
| Image search |
| Video search |
| Local/maps search with POIs and descriptions |
| AI-powered search summarization |
Architecture
Runtime: Cloudflare Workers with Durable Objects (for
McpAgentstate)MCP SDK:
McpAgentfromagentspackage +McpServerfrom@modelcontextprotocol/sdkAuth: Cloudflare Access (Zero Trust) — protects
/mcpendpointAPI key: Stored as a Wrangler secret (
BRAVE_API_KEY), never committed
Deployment
Prerequisites
Wrangler CLI authenticated (
wrangler login)
Deploy
npm install
# Set your Brave Search API key as a secret
wrangler secret put BRAVE_API_KEY
# Deploy to Cloudflare Workers
npm run deployThe Worker will be available at https://brave-search-mcp-cloudflare.<your-subdomain>.workers.dev.
Health check
curl https://brave-search-mcp-cloudflare.<your-subdomain>.workers.dev/health
# {"status":"ok"}Cloudflare Access Setup (recommended)
To protect the /mcp endpoint so only authorized clients can connect:
Go to Zero Trust dashboard → Access → Applications
Click Add an application → Self-hosted
Set the application domain to your Worker URL with path
/mcpCreate a policy (e.g., allow specific email domains, or use Service Tokens for programmatic access)
To create a Service Token: Access → Service Auth → Service Tokens → Create Service Token
Connecting an MCP client through Cloudflare Access
Use mcp-remote with your Service Token credentials:
{
"mcpServers": {
"brave-search": {
"command": "npx",
"args": [
"mcp-remote",
"https://brave-search-mcp-cloudflare.<your-subdomain>.workers.dev/mcp",
"--header",
"CF-Access-Client-Id:<your-client-id>",
"--header",
"CF-Access-Client-Secret:<your-client-secret>"
]
}
}
}Local development
# Set your API key in .dev.vars (never commit this file)
echo "BRAVE_API_KEY=your_key_here" > .dev.vars
npm run dev
# Worker available at http://localhost:8787
# MCP endpoint: http://localhost:8787/mcpTest with MCP Inspector:
npx @modelcontextprotocol/inspector http://localhost:8787/mcpLicense
MIT — see LICENSE
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/NolanFoster/brave-search-mcp-cloudflare'
If you have feedback or need assistance with the MCP directory API, please join our Discord server