mcp-server-starter-kit
Click on "Install 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-server-starter-kitfetch JSON from https://api.example.com/data"
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-server-starter-kit
A production-shaped starter for building a Model Context Protocol server in TypeScript.
Most MCP tutorials stop at "hello world" over stdio. The hard parts — the ones that actually break servers in the wild — start right after: authentication, transport choice, request timeouts, SSRF guards, and a deploy that survives cold starts. This kit ships those, small enough to read in one sitting.
The MCP protocol is the easy part. Everything around it is where servers die. This kit is that "everything around it," kept minimal and honest.
stdio + streamable HTTP, switched by one env var.
Bearer auth that fails closed — no token configured means every HTTP request is rejected, with a real
401+WWW-Authenticate, constant-time comparison, and the token never logged.Legible errors — a typed
ToolErrorbecomes a proper MCP error result (isError: true), so an agent sees[forbidden_host] ...instead of a silent hang or an opaqueinternal error.A real example tool (
http_get_json) with the guards every fetch tool needs and most omit: input validation, https-only, an SSRF host allowlist, and a hard timeout.Stateless HTTP by design — the shape that survives serverless cold starts (see
DEPLOYMENT.md).Tests + typecheck out of the box (a drop-in GitHub Actions CI is in
DEPLOYMENT.md).
Quickstart (stdio, ~60 seconds)
git clone https://github.com/park11innyc-lgtm/mcp-server-starter-kit
cd mcp-server-starter-kit
npm install
cp .env.example .env
npm run dev # starts on stdio; logs "ready on stdio" to stderrPoint Claude Desktop / Cursor at it — claude_desktop_config.json:
{
"mcpServers": {
"starter-kit": {
"command": "npx",
"args": ["tsx", "/absolute/path/to/mcp-server-starter-kit/src/index.ts"]
}
}
}Restart the client and you'll have two tools: ping and http_get_json.
Related MCP server: MCP Server Template
Run it remotely (streamable HTTP + auth)
# generate a token
node -e "console.log(require('crypto').randomBytes(24).toString('base64url'))"
# put it in .env -> MCP_BEARER_TOKENS=<that token>
npm run serve:http # POST http://localhost:3000/mcp (GET /healthz is open)Every request to /mcp now needs Authorization: Bearer <token>. With no token set, the server refuses everything — that "fail closed" default is the point.
The two example tools
Tool | What it shows |
| The minimum viable tool: zero input, structured JSON out. Use it as your liveness check. |
| The patterns a real outbound tool needs — zod input validation, an https-only rule, an SSRF allowlist ( |
Add your own in src/tools.ts and register it in src/server.ts. The try/catch → toToolResult wrapper there is what keeps your failures legible; keep using it.
The parts tutorials skip (and where they live)
Auth that fails closed →
src/auth.ts. Bearer tokens are the correct first step; full delegated OAuth 2.1 is a deliberate non-goal of a starter —DEPLOYMENT.mdpoints at where to add it.stdout is sacred on stdio →
src/index.ts. One strayconsole.logcorrupts the JSON-RPC stream. Log to stderr only.Cold starts →
src/http.tsis stateless on purpose.DEPLOYMENT.mdexplains why and when to add sessions.SSRF → an MCP tool that fetches URLs is an open proxy into your network unless you allowlist hosts.
http_get_jsondoes.
Layout
src/
index.ts entry — picks stdio vs http
server.ts builds the McpServer, registers tools, wraps handlers
tools.ts the example tools (add yours here)
auth.ts bearer auth for the HTTP transport (fail closed)
http.ts stateless streamable-HTTP server
errors.ts ToolError + toToolResult
test/
tools.test.tsScripts
npm run dev # stdio, hot
npm run serve:http # http transport
npm run build # tsc -> dist/
npm start # run built server
npm test # vitest
npm run typecheck # tsc --noEmitLicense
MIT — do whatever you want with it. Attribution appreciated, not required.
Built as an honest reference, not a paywall. A production companion focused on ops automation (retry/dedup, cost caps, runbooks) is in the works — a link will land here when it ships.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseBqualityDmaintenanceA minimal TypeScript starter template for building Model Context Protocol (MCP) servers with auto-loading architecture for tools, resources, and prompts. Includes code generators, dual transport support (stdio/HTTP), and production-ready structure.Last updated3
- AlicenseAquality-maintenanceA production-ready TypeScript template for building MCP servers with dual transport support (stdio/HTTP), OAuth 2.1 foundations, SQLite caching, observability, and security features including PII sanitization and rate limiting.Last updated434
- Alicense-qualityBmaintenanceA feature-complete MCP server template in TypeScript demonstrating tools, resources, prompts, and both stdio and HTTP transports.Last updated7MIT
- Alicense-qualityCmaintenanceA production-ready Model Context Protocol server template in TypeScript that enables building MCP servers with dynamic tool registration, dual transport (stdio + HTTP), and pluggable authentication.Last updated28MIT
Related MCP Connectors
A TypeScript MCP server for Home Assistant, enabling programmatic management of entities, automati…
An MCP server for Arcjet - the runtime security platform that ships with your AI code.
MCP server for interacting with the Supabase platform
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/park11innyc-lgtm/mcp-server-starter-kit'
If you have feedback or need assistance with the MCP directory API, please join our Discord server