Skip to main content
Glama
0xrameshh

mcp-starter

by 0xrameshh

mcp-starter

A production-grade Model Context Protocol (MCP) server in TypeScript: tools, resources, prompts, and integration tests, built on @modelcontextprotocol/sdk 1.30.x.

MCP is the open protocol that lets AI agents call into your tools the same way browsers call HTTP APIs. This starter is the smallest complete implementation you can fork into production: typed tool schemas, clean error surfaces, in-memory transports for testing, and no magic.

Quickstart

npm install
npm run build        # tsc -> dist/
npm test             # integration tests over in-memory transport
npm start            # run the stdio server (node dist/cli.js)
npm run dev          # watch mode (tsx watch src/cli.ts)

Talk to it from any MCP client, for example Claude Desktop:

{
  "mcpServers": {
    "mcp-starter": {
      "command": "node",
      "args": ["/absolute/path/to/mcp-starter/dist/cli.js"]
    }
  }
}

Related MCP server: TypeScript MCP Server Boilerplate

What is inside

Kind

Name

Purpose

Tool

greet

Minimal tool with a zod schema and typed return

Tool

fetch_json

I/O tool with timeout and a clean error surface

Tool

calc

Parsing and validation example

Tools

kv_set / kv_get

Stateful tool pair with an in-memory store

Resource

config://system

Read-only context provider

Architecture

src/cli.ts              stdio bootstrap (the bin entry)
src/index.ts            createServer() factory (the library)
src/tools/              one file per tool family, register(server) pattern
src/resources/          read-only context providers
tests/server.test.ts    real Client <-> Server over InMemoryTransport

The register(server) pattern keeps every capability isolated. Add a tool by dropping one file in src/tools/ and wiring it in index.ts.

Extending

  1. Add src/tools/my-tool.ts exporting registerMyTool(server).

  2. Call it from createServer().

  3. Add a test in tests/; the in-memory transport makes integration tests trivial, with no subprocess and no ports.

Real-world swaps: back the KV store with Redis, mount a Postgres resource, add a domain tool backed by your own API.

Keeping docs current

The MCP spec moves fast. Pull live docs into your coding context with Context7: npx ctx7 docs @modelcontextprotocol/sdk (or the Context7 MCP server). The canonical references are the modelcontextprotocol org on GitHub and the official SDK types.

License

MIT

A
license - permissive license
-
quality - not tested
C
maintenance

Maintenance

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

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

  • A
    license
    B
    quality
    D
    maintenance
    A TypeScript starter template for building MCP servers with example tools (echo, math operations, time, flight status) and resources (server info, greetings). Provides a modular architecture for easily extending with custom tools and resources.
    4
    18
    ISC
  • F
    license
    A
    quality
    D
    maintenance
    A starter project for rapidly developing Model Context Protocol servers using TypeScript and the official SDK. It includes pre-implemented examples of tools and resources to help developers jumpstart their custom MCP server development.
    6
  • F
    license
    B
    quality
    C
    maintenance
    A TypeScript MCP server boilerplate providing example tools and resources for rapid development of custom Model Context Protocol servers.
    8
  • F
    license
    -
    quality
    D
    maintenance
    A TypeScript MCP server boilerplate providing example tools and resources for rapid development and testing of Model Context Protocol servers.

View all related MCP servers

Related MCP Connectors

  • A TypeScript MCP server for Home Assistant, enabling programmatic management of entities, automati…

  • A MCP server built for developers enabling Git based project management with project and personal…

  • An MCP server that let you interact with Cycloid.io Internal Development Portal and Platform

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/0xrameshh/mcp-starter'

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