MCP Server Template
local-only server
The server can only run on the clientβs local machine because it depends on local resources.
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.
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