Overview
mcp-use enables you to build two types of MCP implementations:MCP Servers
Backend services that expose tools, resources, and prompts to AI agents
MCP Apps
Interactive widgets with UI components that work across ChatGPT, Claude, and other clients
MCP Servers
What are MCP Servers?
MCP Servers are backend services that implement the Model Context Protocol to provide tools, resources, and prompts that AI agents can use. They are headless services focused on functionality rather than presentation.Key Characteristics
Tool-Focused
Tool-Focused
MCP Servers primarily expose tools (functions) that AI agents can call to perform actions:
No User Interface
No User Interface
MCP Servers return structured data (text, JSON, binary) without any UI components. The AI client decides how to present the data to users.
Stateless Operations
Stateless Operations
Each tool call is typically independent and stateless:
Resource Access
Resource Access
Servers can expose resources for AI agents to read:
When to Use MCP Servers
Use MCP Servers when you need:- 🛠️ Programmatic access to APIs and services
- 🤖 Tool-based interactions for AI agents
- 📋 Data retrieval from databases or files
- ⚙️ Background processing without UI requirements
- 🔌 Integration with existing backend services
Example: Simple MCP Server
MCP Apps
What are MCP Apps?
MCP Apps extend MCP Servers with interactive UI widgets that render in AI clients like ChatGPT and Claude. They combine backend functionality with frontend presentation in a unified package.Key Characteristics
Interactive Widgets
Interactive Widgets
MCP Apps include React components that render in the client:
Cross-Platform Compatibility
Cross-Platform Compatibility
Widgets work seamlessly across different AI clients:
- ChatGPT: Using Apps SDK protocol
- Claude Desktop: Using MCP Apps Extension
- Other MCP clients: Auto-adapts to capabilities
Rich Interactions
Rich Interactions
Widgets can handle user interactions and call tools:
Automatic Discovery
Automatic Discovery
Widgets in No manual registration needed!
resources/ directory are auto-discovered:When to Use MCP Apps
Use MCP Apps when you need:- 📊 Data visualization (charts, graphs, dashboards)
- 🎮 Interactive forms and user input
- 📋 Rich content display (cards, lists, galleries)
- 👩💻 User-facing interfaces embedded in chat
- 🎨 Custom styling and branding
Example: MCP App with Widget
Comparison Table
Choosing the Right Approach
1
Start with MCP Server
Begin with a basic MCP Server if you:
- Need simple tool exposure
- Don’t require UI components
- Want the simplest implementation
2
Add Widgets Incrementally
Upgrade to MCP App when you:
- Identify tools that benefit from visualization
- Want to improve user experience
- Need interactive components
3
Mix Both Approaches
In the same server, you can have:
- Some tools return plain text (server-style)
- Some tools return widgets (app-style)
Development Workflow
- MCP Server
- MCP App
Learn More
Build Your First Server
Step-by-step guide to creating an MCP Server
Build MCP Apps
Learn to create interactive widgets for MCP Apps
Tools, Resources, Prompts
Deep dive into MCP primitives
Architecture
Understand the mcp-use framework architecture