MCP.so
登录

Cursor Model Context Protocol (MCP) Example

@dang-w

关于 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.

基本信息

分类

开发工具

运行时

node

传输方式

stdio

发布者

dang-w

配置

暂无标准配置

该服务器的 README 中没有可解析的 MCP 配置块,请前往代码仓库查看安装说明。

代码仓库

工具

未检测到工具

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is Cursor Model Context Protocol (MCP) Example?

Cursor Model Context Protocol (MCP) Example is a repository containing example implementations of Model Context Protocol (MCP) servers that can be used with Cursor IDE. It provides developers with ready‑to‑run servers (task manager, file explorer, weather service) to enhance AI capabilities with custom tools and data sources.

How to use Cursor Model Context Protocol (MCP) Example?

Clone the repository, navigate to one of the server directories (e.g., mcp-servers/task-manager), run npm install and npm start. Then open Cursor IDE, go to Settings → Features → MCP, click “Add New MCP Server”, enter a name, choose the transport type (SSE or Stdio), provide the URL or startup command, and click Add. Tools become available in the AI chat panel.

Key features of Cursor Model Context Protocol (MCP) Example

  • Provides task management tools (create, list, complete, delete)
  • Enables file browsing and manipulation (list, read, create, delete)
  • Delivers current weather, forecast, and historical data
  • Connects via Stdio or HTTP with SSE transport
  • Uses standardized JSON‑RPC 2.0 messaging
  • Includes client‑side test examples and documentation

Use cases of Cursor Model Context Protocol (MCP) Example

  • Use AI in Cursor IDE to create and manage tasks directly from chat
  • Let the AI browse and modify files in a local directory
  • Ask the AI for current weather, forecasts, or historical weather data
  • Learn how to build and connect your own custom MCP servers
  • Extend AI assistants with real‑time information and specialized functions

FAQ from Cursor Model Context Protocol (MCP) Example

What is the Model Context Protocol (MCP)?

MCP is an open protocol that standardizes how applications provide context to LLMs. It allows you to create custom tools that can be used by AI assistants in Cursor.

How do I connect an MCP server to Cursor?

Go to Cursor Settings → Features → MCP, click “Add New MCP Server”, provide a name, choose transport (SSE or Stdio), and enter the URL or startup command.

What transports are supported?

Stdio (uses standard input/output) and HTTP with SSE (Server‑Sent Events for server‑to‑client, HTTP POST for client‑to‑server). Both use JSON‑RPC 2.0.

What are the prerequisites for running the examples?

Node.js v14 or later and Cursor IDE.

How can I create my own MCP server?

Create a new directory, initialize a Node project, install @modelcontextprotocol/server and express, then implement tool handlers and register them with the server.

评论

开发工具 分类下的更多 MCP 服务器