Skip to main content

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

MCP Servers primarily expose tools (functions) that AI agents can call to perform actions:
MCP Servers return structured data (text, JSON, binary) without any UI components. The AI client decides how to present the data to users.
Each tool call is typically independent and stateless:
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

MCP Apps include React components that render in the client:
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
Widgets can handle user interactions and call tools:
Widgets in resources/ directory are auto-discovered:
No manual registration needed!

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

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