Alpic MCP Template
A TypeScript template for building MCP servers using Streamable HTTP transport.
Overview
This template provides a foundation for creating MCP servers that can communicate with AI assistants and other MCP clients. It includes a simple HTTP server implementation with example tools, resource & prompts to help you get started building your own MCP integrations.
Prerequisites
- Node.js 22+ (see
.nvmrc
for exact version)
Installation
- Clone the repository:
- Install dependencies:
- Create environment file:
Usage
Development
Start the development server with hot-reload:
The server will start on http://localhost:3000
and automatically restart when you make changes to the source code.
Production Build
Build the project for production:
The compiled JavaScript will be output to the dist/
directory.
Running the Inspector
Use the MCP inspector tool to test your server:
API Endpoints
POST /mcp
- Main MCP communication endpointGET /mcp
- Returns "Method not allowed" (405)DELETE /mcp
- Returns "Method not allowed" (405)
Development
Adding New Tools
To add a new tool, modify src/server.ts
:
Adding New Prompts
To add a new prompt template, modify src/server.ts
:
Resources
This server cannot be installed
A TypeScript template for building MCP servers with HTTP transport that provides a foundation for creating integrations between AI assistants and custom tools. Includes example implementations and development tooling to help developers create their own MCP servers.