MCP Server Template logo

MCP Server Template

by kirill-markin

A simple template for creating custom tools for Cursor IDE using Model Context Protocol (MCP). It allows you to create, modify, and connect your own tools to Cursor IDE.

View on GitHub

Last updated: N/A

What is MCP Server Template?

This is a server template designed to facilitate the creation of custom tools for the Cursor IDE, leveraging the Model Context Protocol (MCP). It provides a foundation for building agents and tools that can interact with and enhance the Cursor IDE environment.

How to use MCP Server Template?

The server can be deployed using Heroku, Docker, or a traditional Python setup. After deployment, configure Cursor IDE to connect to the server using the provided URL and transport method (SSE or stdio). Detailed instructions are provided for each deployment method, including setting environment variables and testing the server.

Key features of MCP Server Template

  • Easy deployment (Heroku, Docker, Python)

  • Model Context Protocol (MCP) support

  • SSE and stdio transport options

  • Configurable environment variables

  • Example server mood response

Use cases of MCP Server Template

  • Creating custom agents for Cursor IDE

  • Extending Cursor IDE functionality

  • Integrating external services with Cursor IDE

  • Building personalized development tools

  • Automating tasks within Cursor IDE

FAQ from MCP Server Template

How do I deploy the server to Heroku?

Click the 'Deploy to Heroku' button in the README and follow the instructions.

What is the SSE endpoint?

The SSE endpoint is the URL used to connect the server to Cursor IDE when using SSE transport. It typically ends with /sse.

How do I use Docker to run the server?

Clone the repository, create a .env file, and use docker compose up --build -d to build and run the server.

What environment variables can I configure?

You can configure MCP_SERVER_PORT, MCP_SERVER_HOST, DEBUG, and MCP_USER_AGENT.

How do I test the server?

Use curl -i http://localhost:8000/sse to test the SSE endpoint or ask your agent about the server mood in Cursor.