MCP Catalogs
Home

boilerplate-mcp-server

by aashari·70·Score 48

Production-ready TypeScript MCP server boilerplate with IP lookup tools and layered architecture.

developer-toolsai-llmother
24
Forks
14
Open issues
2 mo ago
Last commit
2d ago
Indexed

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:

you:Building new MCP servers for API integrations using TypeScript
you:Extending AI assistants with IP geolocation capabilities
you:Creating MCP servers with optimized token usage and secure networking
you:What transport modes does this server support?
you:How is security handled in this implementation?

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 README
  • ip_get_details

    Get detailed information about an IP address including location, ISP, and other geolocation data

  • ip_get_details_link

    Get IP details using the ResourceLink pattern for token-efficient responses

Comparable tools

mcp-server-boilerplatemcp-typescript-templatesimple-mcp-server

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:stdio

Claude 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

GitHub →

Last updated · Auto-generated from public README + GitHub signals.