Cloudflare open-sources use-mcp React library and AI Playground for MCP integration
Cloudflare releases use-mcp, a React library for connecting to MCP servers in 3 lines of code, and open-sources its AI Playground for testing MCP integrations.
Published: 2025-06-18 | 6 min read
Cloudflare has announced the open-sourcing of two key tools for developers working with Model Context Protocol (MCP):
- use-mcp - A React library that simplifies connecting to remote MCP servers with just 3 lines of code
- AI Playground - A complete chat interface platform for testing MCP server connections
Simplifying MCP Client Development
The use-mcp
library abstracts away complex connection handling, offering:
- Automatic transport protocol support (Streamable HTTP and SSE)
- Built-in OAuth 2.1 authentication flows
- Dynamic tool discovery from connected servers
- Connection management with retry logic
- Debugging and monitoring capabilities
Example implementation: javascript import { useMcp } from 'use-mcp/react' function MyComponent() { const { state, tools, callTool } = useMcp({ url: 'https://mcp-server.example.com' }) return <div>Your actual UI code</div> }
AI Playground Now Available
The open-sourced AI Playground provides:
- Pre-built MCP client functionality
- Support for multiple LLM models
- Debug interface for monitoring MCP connections
- One-click deployment via Cloudflare Workers
Getting Started
Developers can deploy these tools directly:
Cloudflare encourages contributions to the MCP ecosystem and invites feedback via email at [email protected].
Related News
Cloudflare and Browserbase Launch Web Bot Auth for AI Agent Verification
Cloudflare and Browserbase introduce Web Bot Auth, a cryptographic framework to verify AI agents, sparking debate on transparency and control in autonomous systems.
Cloudflare's Signed Agents Proposal Sparks Debate on Web Openness
Discussions on Cloudflare's new 'signed agents' proposal highlight the tension between web openness and the need to protect content from AI bots.
About the Author

David Chen
AI Startup Analyst
Senior analyst focusing on AI startup ecosystem with 11 years of venture capital and startup analysis experience. Former member of Sequoia Capital AI investment team, now independent analyst writing AI startup and investment analysis articles for Forbes, Harvard Business Review and other publications.