
A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.
A TypeScript boilerplate for building Model Context Protocol servers with stdio transport, example primitives, configuration, logging, validation and containerization.
TypeScript MCP Server Boilerplate is cataloged as an MCP server attributed to falkicon. A TypeScript boilerplate for building Model Context Protocol servers with stdio transport, example primitives, configuration, logging, validation and containerization. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.
Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for TypeScript MCP Server Boilerplate are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
It includes the greet and add tools, a welcome resource, and a summarize prompt.
It is streamlined with stdio transport support.
README.md · 529f7cf4b31e · Fetched 2026-11-13 11:00:45 UTC
Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.
Showing the last retrieved documentation snapshot; check the source for current changes.
A well-structured, maintainable, and extensible boilerplate project for building Model Context Protocol (MCP) servers using TypeScript. This boilerplate aims to accelerate development, promote consistency, and incorporate best practices for creating MCP integrations.
@modelcontextprotocol/sdk.greet (greeting with configurable prefix) and add (simple calculator)welcome (welcome message resource)summarize (topic summarization prompt).env files and environment variables (src/config.ts).zod for robust argument validation in primitives.pino for structured JSON logging (src/logger.ts). Pretty-printed logs in development.src/errors.ts) and consistent try/catch patterns in all handlers.Dockerfile for creating optimized production images.tests/config.test.ts) and the greet tool handler (tests/greet.test.ts).Clone the repository (or use as a template):
# If you cloned it
git clone <repository-url>
cd mcp-server-boilerplate
Install dependencies:
npm install
Configure environment (Optional):
cp .env.example .env
.env file to set your desired configuration (see Configuration section).Configuration is managed via environment variables, which can be loaded from a .env file for local development.
LOG_LEVEL: The minimum level for logging (e.g., trace, debug, info, warn, error, fatal). (Default: info).NODE_ENV: Set to production for optimized builds and standard JSON logs. Defaults to development (enables pretty logs).CUSTOM_GREETING_PREFIX: Optional prefix for the greeting tool (e.g., "👋 "). Default is empty.This command uses tsx to run the TypeScript code directly and pipes the output through pino-pretty.
npm run dev
Note: The dev script requires pino-pretty to be installed (npm install --save-dev pino-pretty).
Build the TypeScript code:
npm run build
This compiles the code into the dist/ directory.
Run the server:
# Example: Set custom greeting prefix with emoji
set CUSTOM_GREETING_PREFIX=👋
set NODE_ENV=production
npm start
Logs will be in JSON format.
Build the Docker image:
docker build -t mcp-server-boilerplate .
Run the container:
# Run with stdio transport
# (Needs an interactive terminal)
docker run -i --rm --name mcp-server-stdio mcp-server-boilerplate
-e) as needed.Adding Tools:
src/index.ts (or a separate src/tools/ directory).server.tool(name, schemaDefinition, handler).src/errors.ts for consistency.Adding Resources:
server.resource(name, uri, metadata, handler).ResourceTemplate and use server.resource(name, template, metadata, handler).Adding Prompts:
server.prompt(name, schemaDefinition, handler).Adding Configuration:
.env.example.src/config.ts.When working with MCP tools, it's important to understand how they're invoked:
AI Tool Invocation: MCP tools are designed to be called by the AI assistant, not directly by users. The AI can call tools directly using their prefixed name.
Tool Naming:
Logging Considerations:
User Interface:
Based on our experience developing this boilerplate, here are some common issues to be aware of:
JSON-RPC Protocol Issues:
Tool Name Prefixing:
MCP Tool Invocation:
Here are examples of how to configure a client like Cursor to connect to this server.
This method uses Cursor's mcp.json file (typically ~/.cursor/mcp.json on Linux/macOS or C:\Users\<username>\.cursor\mcp.json on Windows).
Ensure you have run npm run build to create the dist/index.js file.
Add a script to your package.json to explicitly run the compiled stdio server:
"scripts": {
// ... other scripts
"start:stdio": "cross-env NODE_ENV=production node dist/index.js --stdio"
}
Install cross-env if you haven't already: npm install --save-dev cross-env.
Configure the server in mcp.json (ensure no JSON comments // exist in the file):
{
"mcpServers": {
"mcp_minimal": {
"displayName": "MCP Minimal",
"command": "node",
"args": [
"C:\\path\\to\\your\\project\\dist\\index.js",
"--stdio"
],
"env": {
"NODE_ENV": "production"
},
"enabled": true
}
}
}
"C:\\path\\to\\your\\project\\dist\\index.js" with the correct absolute path to the dist/index.js file in your project directory. Use double backslashes (\\) as path separators on Windows.node with the absolute script path, bypassing potential issues with npm and relative paths when launched by Cursor.npm audit).Dockerfile uses a non-root user. Keep the base image updated.npm test
npm run test:watch
npm run coverage
tests/ directory following the *.test.ts pattern.npm run formatnpm run format:fixnpm run lintnpm run lint:fixMCP is a very new protocol and is still in active development. There are some known caveats to be aware of:
stdio or via the network using sse. Therefore, MCP servers may not work properly when accessing Cursor over SSH or other development environments. We are hoping to improve this in future releases.This project is licensed under the MIT License - see the LICENSE file for details.
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for TypeScript MCP Server Boilerplate from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/mcp-server-template-falkicon)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.
No reviewed package or image identity; download statistics are not listed yet.
Alternative and complementary servers in the same category

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.