beranradek/mcp-server-template
If you are the rightful owner of mcp-server-template and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
The Model Context Protocol (MCP) server is a framework designed to facilitate the development and deployment of context-aware applications using a modular and scalable architecture.
Build your own MCP server
Quick Start
Prerequisites
- Node.js and npm installed
Creating your own MCP server
-
Install project dependencies: npm install
-
Read CLAUDE.md for MCP development commands and rules.
-
Start building your MCP server:
- Fill in requirements/REQUIREMENTS.md with your custom MCP server requirements
- Generate PRP (product requirements prompt):
/prp-mcp-create requirements/REQUIREMENTS.md
- Execute AI autocoding by executing generated prompt by an AI agent:
/prp-mcp-execute requirements/generated_prp.md
๐ Useful Resources:
- MCP Specification: https://spec.modelcontextprotocol.io/
- Examples: See examples/ directory
- Testing: See tests/ directory
Test and Deploy
Test with MCP Inspector: npx @modelcontextprotocol/inspector@latest Connect to: http://localhost:8792/mcp
AI Documentation
The requirements/ai_docs/
folder contains:
mcp_patterns.md
- Core MCP development patterns and security practices
Template Architecture
This template provides a complete, production-ready MCP server with:
Core Components
src/
โโโ index.ts # Main authenticated MCP server
โโโ tools/ # Implementation of tools
Example Tools
The examples/
folder shows how to create MCP tools.
Key Features
- ๐ ๏ธ Modular Tools - Clean separation of concerns with central registration
- ๐งช Testing - Comprehensive validation from TypeScript to deployment
๐ Key Files to Understand
Implementation Patterns
src/index.ts
- Complete MCP server
Configuration & Deployment
.dev
- Environment variable template (use .dev.example as a starting point)CLAUDE.md
- Implementation guidelines and patterns