Example MCP server implementations for Cursor

Example MCP server implementations for Cursor

example-mcp•bydang-w

A collection of example MCP server implementations covering task management, file exploration, and weather information, along with client examples and documentation for connecting them to Cursor IDE.

License: MIT License•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Provides a Task Manager MCP server with tools to create, list, complete, and delete tasks.
  • •Provides a File Explorer MCP server for listing, reading, creating, and deleting files.
  • •Provides a Weather Service MCP server for current, forecast, and historical weather data.

BEST FOR

  • •Developers who want working reference implementations to learn how MCP servers are structured.
  • •Users connecting custom MCP tools to Cursor IDE's AI chat features.

ABOUT EXAMPLE-MCP

Example MCP server implementations for Cursor is cataloged as an MCP server attributed to dang-w. A collection of example MCP server implementations covering task management, file exploration, and weather information, along with client examples and documentation for connecting them to Cursor IDE. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Example MCP server implementations for Cursor are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Which transport mechanisms do the example servers support?

The examples support stdio transport for local processes and HTTP with SSE transport for server-to-client messages.

Upstream README

View this exact version on GitHub

README.md · 98e2e494dc2f · Fetched 2026-11-13 10:30:53 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

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.

What is the Model Context Protocol?

The Model Context Protocol (MCP) is an open protocol that standardizes how applications provide context to Large Language Models (LLMs). It allows you to create custom tools that can be used by AI assistants in Cursor.

Think of MCP like a USB-C port for AI applications:

  • Just as USB-C provides a standardized way to connect your devices to various peripherals, MCP provides a standardized way to connect AI models to different data sources and tools
  • It enables AI assistants to access real-time information, execute specialized functions, and enhance their capabilities beyond their training data

Project Structure

example-mcp/
├── mcp-servers/                # Different MCP server implementations
│   ├── task-manager/           # Task manager MCP server example
│   ├── file-explorer/          # File explorer MCP server example
│   └── weather-service/        # Weather service MCP server example
├── client-examples/            # Example code for testing MCP servers
├── docs/                       # Additional documentation
└── README.md                   # This file

MCP Server Examples

This repository includes several example MCP servers:

1. Task Manager MCP Server

A simple MCP server that provides tools for managing tasks:

  • Create new tasks
  • List all tasks
  • Mark tasks as completed
  • Delete tasks

2. File Explorer MCP Server

An MCP server that allows browsing and manipulating files:

  • List files in a directory
  • Read file contents
  • Create new files
  • Delete files

3. Weather Service MCP Server

An MCP server that provides weather information:

  • Get current weather for a location
  • Get weather forecast for a location
  • Get historical weather data

Getting Started

Prerequisites

Setting Up an MCP Server

  1. Navigate to one of the server directories:

    cd example-mcp/mcp-servers/task-manager
    
  2. Install dependencies:

    npm install
    
  3. Start the server:

    npm start
    

Connecting to Cursor

To connect your MCP server to Cursor:

  1. Open Cursor IDE
  2. Go to Settings (gear icon in the bottom left)
  3. Navigate to the "Features" section
  4. Scroll down to "MCP"
  5. Click "Add New MCP Server"
  6. Enter a name for your server (e.g., "Task Manager MCP")
  7. Choose the transport type:
    • SSE: Enter the URL of your MCP server (e.g., http://localhost:3000)
    • Stdio: Enter the command to start your server (e.g., node /path/to/example-mcp/mcp-servers/task-manager/index.js)
  8. Click "Add"

Using MCP Tools in Cursor

Once your MCP server is connected, you can use it in Cursor's AI features:

  1. Open the AI chat panel (Cmd+I or Ctrl+I)

  2. Ask the AI to use your MCP tools:

    Please create a new task titled "Implement user authentication" with the description "Add user login and registration functionality to the application."
    
  3. The AI will use your MCP server to create the task and respond with the result

  4. You can also ask for a list of tasks:

    Show me all the current tasks in the task manager.
    

MCP Architecture

The Model Context Protocol follows a client-server architecture:

  • MCP Hosts: Programs like Cursor IDE that want to access data through MCP
  • MCP Clients: Protocol clients that maintain connections with servers
  • MCP Servers: Lightweight programs that expose specific capabilities through the standardized Model Context Protocol
  • Local Data Sources: Your computer's files, databases, and services that MCP servers can securely access
  • Remote Services: External systems available over the internet that MCP servers can connect to

Transports

MCP supports multiple transport mechanisms:

  1. Stdio transport:

    • Uses standard input/output for communication
    • Ideal for local processes
  2. HTTP with SSE transport:

    • Uses Server-Sent Events for server-to-client messages
    • HTTP POST for client-to-server messages

All transports use JSON-RPC 2.0 to exchange messages.

Creating Your Own MCP Server

To create your own MCP server:

  1. Create a new directory for your server

  2. Initialize a Node.js project:

    npm init -y
    
  3. Install required dependencies:

    npm install @modelcontextprotocol/server express
    
  4. Create an index.js file with your server implementation

  5. Register tools with names, descriptions, and parameter schemas

  6. Implement handlers for each tool

  7. Set up an Express server and apply the MCP middleware

See the example servers in this repository for reference implementations.

Troubleshooting

If you encounter issues with your MCP server:

  1. Check server logs for any errors
  2. Verify the server is running and accessible at the specified URL
  3. Restart Cursor if the connection status doesn't update
  4. Check Cursor's logs for any connection errors (Help > Toggle Developer Tools)

Resources

License

This project is licensed under the MIT License - see the LICENSE file for details.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Example MCP server implementations for Cursor from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/example-mcp)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools