MCP TypeScript Boilerplate
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP TypeScript Boilerplate scaffold a new MCP server for a weather API"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP TypeScript Boilerplate
A starting point for building MCP servers with the official @modelcontextprotocol/sdk, no wrapper framework. Extracted from a working, published server (mcp-abuseipdb).
Layers
src/
config.ts env loading + validation — API key, base URL, timeout
client.ts generic fetch wrapper — no domain knowledge, rarely needs changes
apiClient.ts adds this API's auth header + error unwrapping, on top of client.ts
endpoints/ one file per API endpoint you call — HTTP shape only
example.ts
tools/
types.ts the Tool interface every tool file implements
example.ts one tool: schema + handler, calls into endpoints/
index.ts tool registry — tools[] array
server.ts wires the tool registry into an McpServer instance
index.ts entrypoint: loadConfig() → createServer() → connect stdio transportRelated MCP server: TypeScript MCP Server Boilerplate
Adapting this to a new service
src/config.ts— renameAPI_KEYto<SERVICE>_API_KEY, set the realBASE_URLsrc/apiClient.ts— match the target API's auth scheme (header name,Bearervs custom) and error response shapesrc/endpoints/— one function per endpoint, deleteexample.tssrc/tools/— one tool per file (schema + result formatting), deleteexample.ts, register real tools intools/index.tspackage.json— rename, updatebin, description, repo URLs
Build
npm install
cp .env.example .env # fill in API_KEY
npm run build
npm startDesign notes
client.tshas zero domain knowledge — it should not need to change between projectsapiClient.tsis the only layer that knows about auth and this API's error formatendpoints/returns typed data,tools/formats that data as MCPcontent— don't blend the twostdio transport, so this works with Claude Desktop, Claude Code, and any other MCP-compatible client without extra setup
Available Tools
1 toolget_exampleA
Fetch an example resource by ID.
Inputs: id (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 1 tool
There is only one tool, so no ambiguity exists. An agent cannot confuse it with another tool.
With a single tool, naming consistency is not a concern; there is no inconsistency to evaluate.
As a boilerplate server, one tool is appropriate for its demonstration purpose. It is minimal but not unreasonable.
For a boilerplate, the single tool serves as an example. However, it lacks any create, update, or delete operations, which limits its completeness.
Maintenance
Related MCP Connectors
A simple Typescript MCP server built using the official MCP Typescript SDK and smithery/cli. This…
A TypeScript MCP server for Home Assistant, enabling programmatic management of entities, automati…
The official MCP Server for the Mux API
An MCP server that let you interact with Cycloid.io Internal Development Portal and Platform
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA boilerplate project for quickly developing MCP servers using TypeScript SDK, with example implementations of calculator and greeting tools, plus resource handling capabilities.ISC
- AlicenseAqualityDmaintenanceA boilerplate for building MCP servers using TypeScript, with example tools like calculator and greet, plus resource support.6MIT
- AlicenseBqualityDmaintenanceA TypeScript MCP server boilerplate providing example tools and resources for rapid development of custom Model Context Protocol servers.8ISC
- AlicenseBqualityDmaintenanceA TypeScript MCP server boilerplate providing example tools and resources for rapid development and testing of Model Context Protocol servers.7ISC