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

Install Server
A
license - permissive license
C
quality
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Tools

Related MCP Servers

  • A
    license
    A
    quality
    -
    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
    10
  • A
    license
    -
    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.
    11
    MIT

View all related MCP servers

Related MCP Connectors

View all MCP Connectors

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