MCP.so
登录

Boilerplate MCP Server

@aashari

关于 Boilerplate MCP Server

TypeScript Model Context Protocol (MCP) server boilerplate providing IP lookup tools/resources. Includes CLI support and extensible structure for connecting AI systems (LLMs) to external data sources like ip-api.com. Ideal template for creating new MCP integrations via Node.js.

基本信息

分类

开发工具

运行时

node

传输方式

stdio

发布者

aashari

配置

暂无标准配置

该服务器的 README 中没有可解析的 MCP 配置块,请前往代码仓库查看安装说明。

代码仓库

工具

未检测到工具

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is Boilerplate MCP Server?

Boilerplate MCP Server is a production-ready foundation for developing custom Model Context Protocol (MCP) servers in TypeScript. It provides a complete layered architecture pattern, working example implementation, and comprehensive developer infrastructure to connect AI assistants with external APIs and data sources.

How to use Boilerplate MCP Server?

Clone the repository, install dependencies, and build the project. Run in CLI mode (npm run cli -- get-ip-details), STDIO transport (npm run mcp:stdio), HTTP transport (npm run mcp:http), or development with MCP Inspector (npm run mcp:inspect). Transport mode is configured via the TRANSPORT_MODE environment variable.

Key features of Boilerplate MCP Server

  • Security First: DNS rebinding protection and localhost-only binding
  • Dual Transport Support: STDIO and Streamable HTTP with automatic fallback
  • Layered Architecture: Six clean layers for maintainable code
  • Type Safety: Full TypeScript with Zod v4.3.6 schema validation
  • All MCP Primitives: Tools, resources, and prompts with examples
  • TOON Output Format: 30–60% fewer tokens than JSON

Use cases of Boilerplate MCP Server

  • Build custom MCP servers for any external API or data source
  • Develop and test AI assistant tools using the included IP geolocation example
  • Integrate with Claude Desktop or Cursor AI via STDIO transport
  • Rapidly prototype with MCP Inspector’s debugging UI
  • Serve multiple concurrent connections via HTTP transport

FAQ from Boilerplate MCP Server

What is MCP?

Model Context Protocol (MCP) is an open standard for securely connecting AI systems to external tools and data sources.

What are the prerequisites?

Node.js version 20.x or higher and Git for version control.

What transport modes are supported?

STDIO transport (JSON‑RPC via stdin/stdout) and Streamable HTTP transport with Server‑Sent Events (SSE), running on port 3000 by default.

What security measures are implemented?

Built‑in protection includes DNS rebinding protection, localhost‑only binding, and secure error handling that avoids leaking sensitive information. Authentication (e.g., mTLS, OAuth 2.0, bearer tokens) is required when deploying on a network.

What output formats are available?

Default TOON (Token‑Oriented Object Notation), standard JSON (via --output-format json), and JMESPath filtering (--jq) to extract specific fields.

评论

开发工具 分类下的更多 MCP 服务器