boilerplate-mcp-server
by aashari·★ 70·Score 48
Production-ready TypeScript MCP server boilerplate with IP lookup tools and layered architecture.
Overview
A comprehensive TypeScript boilerplate for creating MCP servers with a clean layered architecture. It provides security-first design with DNS rebinding protection, dual transport support (STDIO and HTTP), and optimized token output formats like TOON. The server includes a complete IP geolocation example with ip-api.com integration, testing infrastructure, and production tooling.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose this template when starting a new MCP server project in TypeScript, especially if you need production-ready patterns with security features and token-efficient output formats.
When NOT to choose this
Don't choose this if you need a runtime in JavaScript instead of TypeScript, or if you're looking for a simpler boilerplate without the layered architecture complexity.
Tools this server exposes
2 tools extracted from the READMEip_get_detailsGet detailed information about an IP address including location, ISP, and other geolocation data
ip_get_details_linkGet IP details using the ResourceLink pattern for token-efficient responses
Comparable tools
Installation
Installation
# Clone the repository
git clone https://github.com/aashari/boilerplate-mcp-server.git
cd boilerplate-mcp-server
# Install dependencies
npm install
# Build the project
npm run build
# Run in STDIO mode for Claude Desktop
npm run mcp:stdioClaude Desktop Configuration
Add to Claude Desktop's config.json:
{
"mcpServers": {
"boilerplate-mcp": {
"command": "node",
"args": ["dist/index.js"],
"env": {
"TRANSPORT_MODE": "stdio"
}
}
}
}FAQ
- What transport modes does this server support?
- The server supports both STDIO transport (for Claude Desktop, Cursor) and HTTP transport (for web integrations) with automatic fallback.
- How is security handled in this implementation?
- The server implements DNS rebinding protection, localhost-only binding, secure error handling, and provides comprehensive authentication guides for production deployment.
Compare boilerplate-mcp-server with
Last updated · Auto-generated from public README + GitHub signals.