mcp-template-node
A template repository for creating Model Context Protocol (MCP) servers in Node.js/TypeScript, demonstrating a simple notes management system using the MCP protocol.
The MCP Template Node is a foundational repository designed to facilitate the creation of Model Context Protocol (MCP) servers using Node.js and TypeScript. It provides a structured approach to implementing MCP, which is a standardized protocol for providing context to Large Language Models (LLMs). This template includes a simple notes management system that showcases basic CRUD operations, serving as a practical example of MCP concepts such as Tools, Resources, and Prompts. The project is built with TypeScript, ensuring strict type checking, and includes comprehensive error handling, validation, and unit tests using Vitest. Additionally, it offers in-memory storage for notes, a GitHub Actions CI workflow for testing and building, and a VS Code debugging configuration. The template is designed to be easily extendable, allowing developers to add new types, tools, resources, and prompt templates as needed.
Features
- TypeScript implementation with strict type checking
- Simple notes management system with basic CRUD operations
- Comprehensive error handling and validation
- Unit tests with Vitest
- GitHub Actions CI workflow for testing and building
MCP Tools
- {'Create Note': 'Creates a new note with title and content.'}
- {'List Notes': 'Lists all available notes with their IDs and titles.'}
- {'Get Note': 'Retrieves a specific note by ID.'}
- {'Update Note': "Updates an existing note's title, content, or tags."}
- {'Delete Note': 'Deletes a note by ID.'}
Usage with Different Platforms
Node.js
bash
git clone https://github.com/Rethunk-Tech/mcp-template-node.git
cd mcp-template-node
yarn install
yarn build
yarn start
Testing
bash
yarn test
yarn test:watch
yarn test:coverage
Development
bash
yarn dev
yarn lint
yarn lint:fix
Related MCP Servers
View all developer_tools servers →Sequential Thinking🏅
by modelcontextprotocol
An MCP server implementation that provides a tool for dynamic and reflective problem-solving through a structured thinking process.
context7
by upstash
Context7 MCP provides up-to-date, version-specific documentation and code examples directly into your prompt, enhancing the capabilities of LLMs by avoiding outdated or hallucinated information.
git-mcp
by idosal
GitMCP is a free, open-source, remote Model Context Protocol (MCP) server that transforms GitHub projects into documentation hubs, enabling AI tools to access up-to-date documentation and code.
Everything MCP Server
by modelcontextprotocol
The Everything MCP Server is a comprehensive test server designed to demonstrate the full capabilities of the Model Context Protocol (MCP). It is not intended for production use but serves as a valuable tool for developers building MCP clients.
exa-mcp-server
by exa-labs
A Model Context Protocol (MCP) server allows AI assistants to use the Exa AI Search API for real-time web searches in a secure manner.
repomix
by yamadashy
Repomix is a tool that packages your entire codebase into a single, AI-friendly file, making it easier to use with AI tools like LLMs.
Sequential Thinking MCP Server
by modelcontextprotocol
An MCP server implementation that provides a tool for dynamic and reflective problem-solving through a structured thinking process.