The Control Plane for MCP Agents
mcp-use is an open-source SDK to build, deploy, and manage your MCP agents and servers with unparalleled simplicity and power.
Why mcp-use?
Open Source & Universal
Gain full transparency with our open-source codebase. mcp-use is LLM-agnostic, supporting any LangChain model with tool-calling to ensure maximum flexibility for your projects.
Effortless API
Launch your first MCP-capable agent with just a few lines of Python. Our simple API and interactive builder dramatically lower the barrier to entry for AI agent development.
Unified Server Management
Connect to multiple MCP servers at once, whether they're on-prem, hosted, or third-party. The mcp-use gateway intelligently routes requests for optimal performance.
Get Started in Seconds
Install the library and create your first agent. It's that simple.
pip install mcp-use
# Connect to a server pool
client = MCPClient(server_pool="your_servers")
# Bring your own model
llm = AnyModelProvider(model="any-4o", api_key=...)
# Create and run the agent
agent = MCPAgent(llm=llm, client=client)
result = await agent.run("Your query here")
Powerful Features for Modern Development
Asynchronous by Design
Leverage asynchronous streaming to get real-time results and intermediate steps from your agents, perfect for interactive applications like chatbots and live dashboards.
Robust Security
Maintain full control over your agents. Restrict access to sensitive tools like file systems or network resources to ensure safe and secure operations in any environment.
Flexible Deployment
Deploy fully managed MCP servers in the cloud, sandbox them locally, or proxy third-party services. Manage all your infrastructure from a single, unified control plane.
MCP in Action
Browse MCP use cases from across the community or submit your own.
Search the web while writing code
Embed internet search capabilities into Cursor with Brave Search.
Use voice to manage Notion
Perform actions in Notion with your voice.
Search & compare doctor reviews
Search and analyze doctor profiles online, compiling findings into a spreadsheet.
Deep research reports on any topic
Perform deep, time-controlled web research to produce reports.
Find the best surf times
Find optimal surf conditions by analyzing tide patterns using Stormglass API.
Remove background from image
Use the Stability AI API to remove the background from an image.
Find flights for travel planning
Get personalized flight recommendations using Duffel API.
Use AI to make code changes in a GitHub repository
Modify files and open pull requests without an IDE.
Solve complex math problems with AI
Hook into WolframAlpha's math solving capabilities right in your conversations with Claude.
Turn codebase to knowledge graph
Use cognee to codify a given Python repository into a detailed knowledge graph that maps code relationships and dependencies.
Figma to code
Give Claude access to a Figma file to convert a design to HTML/CSS (Tailwind).
Generate an image
Give Claude the ability to generate high-quality images with Stable Diffusion.