Quickstart - Model Context Protocol
Quickstart - Model Context Protocol
Get Started
Quickstart
Get started with MCP in less than 5 minutes
MCP is a protocol that enables secure connections between host applications, such as
Claude Desktop, and local services. In this quickstart guide, you’ll learn how to:
While this guide focuses on using Claude Desktop as an example MCP host, the protocol is
open and can be integrated by any application. IDEs, AI tools, and other software can all use
MCP to connect to local integrations in a standardized way.
Claude Desktop’s MCP support is currently in developer preview and only supports connecting
to local MCP servers running on your machine. Remote MCP connections are not yet
supported. This integration is only available in the Claude Desktop app, not the Claude web
interface (claude.ai).
General Architecture
https://modelcontextprotocol.io/quickstart 1/9
12/1/24, 9:41 PM Quickstart - Model Context Protocol
At its core, MCP follows a client-server architecture where a host application can connect to
multiple servers:
Local
MCP Protocol MCP Server A
Resource A
Internet
Remote
Resource C
MCP Hosts: Programs like Claude Desktop, IDEs, or AI tools that want to access
resources through MCP
MCP Clients: Protocol clients that maintain 1:1 connections with servers
MCP Servers: Lightweight programs that each expose specific capabilities through the
standardized Model Context Protocol
Local Resources: Your computer’s resources (databases, files, services) that MCP
servers can securely access
Remote Resources: Resources available over the internet (e.g., through APIs) that MCP
servers can connect to
https://modelcontextprotocol.io/quickstart 2/9
12/1/24, 9:41 PM Quickstart - Model Context Protocol
In This Guide
For this quickstart, we’ll implement a focused example using SQLite:
Get Started Quickstart
Your Computer
The communication between the SQLite MCP server and your local SQLite database
happens entirely on your machine—your SQLite database is not exposed to the internet. The
Model Context Protocol ensures that Claude Desktop can only perform approved database
operations through well-defined interfaces. This gives you a secure way to let Claude
analyze and interact with your local data while maintaining complete control over what it can
access.
Prerequisites
macOS or Windows
The latest version of Claude Desktop installed
uv 0.4.18 or higher ( to check)
Git ( to check)
SQLite ( to check)
https://modelcontextprotocol.io/quickstart 3/9
12/1/24, 9:41 PM Quickstart - Model Context Protocol
Installation
macOS Windows
Get Started Quickstart
https://modelcontextprotocol.io/quickstart 4/9
12/1/24, 9:41 PM Quickstart - Model Context Protocol
2 Get Started
ConfigureQuickstart
Claude Desktop
{
"mcpServers": {
"sqlite": {
"command": "uvx",
"args": ["mcp-server-sqlite", "--db-path", "/Users/YOUR_USERNAME/tes
}
}
}
Test it out
https://modelcontextprotocol.io/quickstart 5/9
12/1/24, 9:41 PM Quickstart - Model Context Protocol
Let’s verify everything is working. Try sending this prompt to Claude Desktop:
Can you connect to my SQLite database and tell me what products are available, an
Get Started Quickstart
1. Server Discovery: Claude Desktop connects to your configured MCP servers on startup
3. Interaction Flow:
Initialize connection
Available capabilities
Query request
SQL query
Results
Formatted results
4. Security:
https://modelcontextprotocol.io/quickstart 7/9
12/1/24, 9:41 PM Quickstart - Model Context Protocol
Data Analysis
Complex Operations
Note that these MCP servers will require Node.js to be installed on your machine.
PostgreSQL Connection
https://modelcontextprotocol.io/quickstart 8/9
12/1/24, 9:41 PM Quickstart - Model Context Protocol
Each host application may implement MCP features differently or support different
capabilities. Check their respective documentation for specific setup instructions and
supported features.
Get Started Quickstart
Troubleshooting
Nothing showing up in Claude Desktop?
Next steps
Introduction Clients
https://modelcontextprotocol.io/quickstart 9/9