Skip to main content
Glama
mcp-server-template

mcp-server-template

mcp-server-template

A template for building a TypeScript MCP server. It ships a reusable carcass — typed fetch client (timeouts, retries, backoff), rate limiting, TTL cache, OAuth token store, structured errors, leveled logging, MCP tool-result helpers — plus build tooling, node:test setup, .mcpb packaging and GitHub Actions CI/release.

The server speaks standard MCP over stdio, so it works with any MCP client (Claude Desktop/Code, Cursor, VS Code, Cline, …).

Use it

Click Use this template on GitHub (or copy this directory), then follow the checklist in TEMPLATE.md. In short: rename, edit src/config.ts, add your src/clients/ and src/tools/, and update the manifest and docs. The included search tool is a placeholder to delete.

Related MCP server: MCP Server Template

Develop

npm install
npm run build        # type-check + bundle to dist/index.js
npm test             # node:test (mocked, offline)
npm run lint
npm run format
npm run check:api    # live upstream health-check (add your endpoints)
npm run inspector    # run under the MCP Inspector

Runtime requires Node ≥ 20. Contributor/agent guidance lives in AGENTS.md (the single source of truth; CLAUDE.md just links to it).

Updating

Document how users update your server (keep this section in the generated repo):

  • .mcpb bundle: download the new bundle from the releases page and reinstall.

  • From source: git pull && npm ci && npm run build.

  • npx (if published): unpinned npx -y <package> fetches the latest next run.

Tell users to Watch → Releases, and keep the CHANGELOG current.

License

MIT © Grinv

Available Tools

1 tool

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    C2.6/5.0

    Scored across 1 tool

    Disambiguation5/5

    Only one tool exists, so there is zero ambiguity in tool selection.

    Naming Consistency5/5

    With a single tool named 'search', naming is trivially consistent, though no pattern is established.

    Tool Count1/5

    A single placeholder tool is far too few for any meaningful server purpose; it does not earn its place.

    Completeness1/5

    The tool set is a template with a single example tool, providing no real coverage of any domain.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      Not graded
      maintenance
      A 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.
      4
      30 npm
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      A TypeScript-based template for rapidly developing MCP servers with modular tool architecture, built-in validation using Zod schemas, and comprehensive error handling.
      5 npm
      MIT