mcp-use — Build MCP Apps & Servers
Quick Start (TypeScript)
import { MCPServer, text } from 'mcp-use';
import { z } from 'zod';
const server = new MCPServer({
name: "my-server",
version: "1.0.0"
});
server.tool({
name: "get_weather",
schema: z.object({ city: z.string() })
}, async ({ city }) => text(`Temperature: 72°F, City: ${city}`));
await server.listen(3000);Quick Start (Python)
from mcp_use import MCPServer, text
server = MCPServer(name="my-server", version="1.0.0")
@server.tool()
async def get_weather(city: str) -> str:
return text(f"Temperature: 72°F, City: {city}")
server.run(port=3000)Key Features
| Feature | Description |
|---|---|
| Dual SDK | TypeScript and Python support |
| Inspector | Preview and test MCP tools visually |
| Cloud Deploy | Deploy to Manufact MCP Cloud with metrics and logs |
| Interactive Widgets | Write once, run across all MCP clients |
| Auto-Discovery | Widgets auto-discovered from resource directories |
Deployment
# Preview locally
npx mcp-use inspect
# Deploy to cloud
npx mcp-use deployFAQ
Q: What is mcp-use? A: mcp-use is a fullstack framework for building MCP servers and apps in TypeScript or Python, with built-in inspector, cloud deployment, and cross-platform widget support.
Q: Is mcp-use free? A: Yes, the SDK is open source under the MIT license. Cloud deployment has free and paid tiers.
Q: How do I create my first MCP server?
A: Run npx create-mcp-use-app@latest for TypeScript or pip install mcp-use for Python, then define tools with the simple decorator/builder API.