
alexanderop/mcp-server-starter-ts
Developer toolsЭта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
A minimal TypeScript starter template for building Model Context Protocol (MCP) servers.
Обзор
A minimal, production-ready TypeScript starter template for building Model Context Protocol (MCP) servers. The Model Context Protocol (MCP) is an open protocol that standardizes how AI applications connect to data sources and tools. Think of it as "USB-C for AI" - a universal standard that allows any AI model to connect with any data source or tool through a consistent interface. This starter template provides: - ✅ to get you started quickly - ✅ for tools, resources, and prompts - ✅ with strict typing - ✅ that scales with your project - ✅ (echo tool) to demonstrate the pattern Whether you're building integrations for databases, APIs, file systems, or custom business tools, this template helps you create MCP servers that can be used by any MCP-compatible client (like Claude Desktop, IDEs, or custom applications).
README
Показан фрагмент оригинального README. Открыть оригинал.
MCP Server Starter (TypeScript)
🎯 Motivation
The Model Context Protocol (MCP) is an open protocol that standardizes how AI applications connect to data sources and tools. Think of it as “USB-C for AI” - a universal standard that allows any AI model to connect with any data source or tool through a consistent interface.
graph LR
A[AI] |MCP| B[Server]
B C[Tools]
B D[Resources]
This starter template provides:
- ✅ Minimal boilerplate to get you started quickly
- ✅ Auto-loading architecture for tools, resources, and prompts
- ✅ TypeScript best practices with strict typing
- ✅ Production-ready structure that scales with your project
- ✅ Working example (echo tool) to demonstrate the pattern
Whether you’re building integrations for databases, APIs, file systems, or custom business tools, this template helps you create MCP servers that can be used by any MCP-compatible client (like Claude Desktop, IDEs, or custom applications).
📋 Table of Contents
- Features
- Prerequisites
- Installation
- Quick Start
- Transport Modes
- Docker Support
- Project Structure
- Development Guide
- Testing with MCP Inspector
- Configuration
- Commands
- Integration
- Contributing
- License
✨ Features
- 🚀 Auto-loading Module System - Drop new tools, resources, or prompts into their directories and they’re automatically registered
- 🛠️ TypeScript First - Full type safety with strict TypeScript configuration
- 📦 Minimal Dependencies - Only essential packages included
- 🧪 Built-in Testing - Uses Node.js native test runner
- 🔍 MCP Inspector Support - Test your server with the official MCP Inspector
- 📝 Extensible Architecture - Clear patterns for adding new capabilities
Установка
docker run -p 3000:3000 ghcr.io/alexanderopalic/mcp-server-starter-ts:latestКонфигурация
{
"mcpServers": {
"mcp-server-starter": {
"command": "node",
"args": ["/path/to/mcp-server-starter/build/index.js"]
}
}
}