MCP Server Template 🛠️
A starter template for building your own Model Context Protocol (MCP) server. This template provides the basic structure and setup needed to create custom MCPs that can be used with Cursor or Claude Desktop.
Features
- Basic MCP server setup with TypeScript
- Sample tool implementation
- Ready-to-use project structure
- Built with @modelcontextprotocol/sdk
Project Structure
Getting Started
- Clone this template:
- Install dependencies:
- Build the project:
This will generate the /build/index.js
file - your compiled MCP server script.
Using with Cursor
- Go to Cursor Settings -> MCP -> Add new MCP server
- Configure your MCP:
- Name: [choose your own name]
- Type: command
- Command:
node ABSOLUTE_PATH_TO_MCP_SERVER/build/index.js
Using with Claude Desktop
Add the following MCP config to your Claude Desktop configuration:
Development
The template includes a sample tool implementation in index.ts
. To create your own MCP:
- Modify the server configuration in
index.ts
:
- Define your custom tools using the
server.tool()
method:
- Build and test your implementation:
Contributing
Feel free to submit issues and enhancement requests!
License
MIT
You must be authenticated.
local-only server
The server can only run on the client's local machine because it depends on local resources.
Tools
A starter template for building Model Context Protocol servers that can be integrated with Cursor or Claude Desktop, allowing developers to create custom tools and extensions for AI assistants.
- Features
- Project Structure
- Getting Started
- Using with Cursor
- Using with Claude Desktop
- Development
- Contributing
- License
Related Resources
Related MCP Servers
- -securityFlicense-qualityA Model Context Protocol server that enables AI assistants to explore and interact with Cursor IDE's SQLite databases, providing access to project data, chat history, and composer information.Last updated -10Python
- -securityFlicense-qualityA Model Context Protocol server that enables AI assistants like Claude to perform Python development tasks through file operations, code analysis, project management, and safe code execution.Last updated -1Python
- -securityFlicense-qualityA Model Context Protocol server that connects AI assistants like Claude to Notion workspaces, enabling them to view, search, create, and update Notion databases, pages, and content blocks.Last updated -275JavaScript
- AsecurityAlicenseAqualityA foundation for building custom local Model Context Protocol (MCP) servers that provide tools accessible to AI assistants like Cursor or Claude Desktop.Last updated -1TypeScriptMIT License
Appeared in Searches
- A JavaScript library for building user interfaces (React)
- How to create a sandbox environment
- Model-Controller-Presenter (MCP) for Building iOS Apps
- Information about AWS (Amazon Web Services)
- Most Popular MCPS (Microsoft Certified Professionals, Music Copyright Societies, or Montgomery County Public Schools)