MCP Servers logo

MCP Servers

by dchkang83

This repository provides example implementations of an MCP (Machine Control Protocol) server for communication between Cursor IDE and Agents. It offers server examples implemented in both Python and TypeScript.

View on GitHub

Last updated: N/A

What is MCP Servers?

This project contains MCP (Machine Control Protocol) server implementations, designed for communication between Cursor IDE and Agents, based on JSON-RPC 2.0. It includes examples in both Python and TypeScript.

How to use MCP Servers?

The repository contains two sub-projects: one in Python and one in TypeScript. To use the Python server, navigate to the mcp-python-250309 directory, install the requirements using pip install -r requirements.txt, and run the server using python server.py. For the TypeScript server, navigate to the mcp-typescript-250309 directory, install the dependencies using npm install, and start the server using npm start. Refer to the individual README files for more details.

Key features of MCP Servers

  • JSON-RPC 2.0 support

  • Support for various transport methods (SSE, WebSocket, stdio) - Python

  • Sample MCP tools, resources, and prompts implementation - Python

  • Docker containerization support - Python

  • Simple addition tool (add) - TypeScript

  • Dynamic greeting resource (greeting) - TypeScript

  • SSE (Server-Sent Events) connection via Express server - TypeScript

Use cases of MCP Servers

  • Developing custom tools for Cursor IDE

  • Creating agents that can interact with Cursor IDE

  • Implementing communication protocols between IDEs and background processes

  • Building extensions for code editors

  • Facilitating remote code execution and debugging

FAQ from MCP Servers

What is MCP?

MCP (Machine Control Protocol) is a protocol for communication between Cursor IDE and Agents, based on JSON-RPC 2.0.

What languages are supported?

The repository provides examples in Python and TypeScript.

What is JSON-RPC 2.0?

JSON-RPC 2.0 is a stateless, light-weight remote procedure call (RPC) protocol encoded in JSON.

Where can I find more detailed instructions?

Refer to the README files within each sub-project directory (mcp-python-250309 and mcp-typescript-250309).

What is the license?

The project is licensed under the MIT License.