Cursor Model Context Protocol (MCP) Example
This repository contains example implementations of Model Context Protocol (MCP) servers that can be used with Cursor IDE to enhance AI capabilities with custom tools and data sources.
Overview
The Cursor Model Context Protocol (MCP) Example is a repository containing implementations of MCP servers designed to enhance AI capabilities in the Cursor IDE by integrating custom tools and data sources.
To use the MCP Example, clone the repository, set up an MCP server by following the provided instructions, and connect it to the Cursor IDE to utilize its features.
- Standardized protocol for connecting AI models to various data sources. - Example implementations of different MCP servers (Task Manager, File Explorer, Weather Service). - Support for multiple transport mechanisms (Stdio, HTTP with SSE).
- Managing tasks through an AI assistant.
- Browsing and manipulating files using AI.
- Accessing real-time weather information via AI queries.
Add to your AI client
Use these steps to connect Cursor Model Context Protocol (MCP) Example in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"example-mcp-dang-w": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-example-mcp-dang-w"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"example-mcp-dang-w": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-example-mcp-dang-w"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"example-mcp-dang-w": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-example-mcp-dang-w"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"example-mcp-dang-w": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-example-mcp-dang-w"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"example-mcp-dang-w": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-example-mcp-dang-w"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"example-mcp-dang-w": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-example-mcp-dang-w"
]
}
}
}FAQ
What is the Model Context Protocol?
It is an open protocol that standardizes how applications provide context to Large Language Models (LLMs).
How do I create my own MCP server?
Follow the guidelines in the repository to set up a new directory, initialize a Node.js project, and implement your server.
What are the transport mechanisms supported?
MCP supports Stdio transport for local processes and HTTP with SSE for server-to-client communication.