Skip to main content
Glama
Grinv

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

TDQS

C2.6/5.0
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

ActivitySlowing
ResponsivenessSyncing

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
    22
  • 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.
    13
    MIT

Latest Blog Posts

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/Grinv/mcp-server-template'

If you have feedback or need assistance with the MCP directory API, please join our Discord server