Skip to main content
Glama
ryanngit

mcp-server-starter

by ryanngit

TypeScript MCP Server Starter

Minimal typed scaffold for a local Model Context Protocol stdio server. It ships two small read-only tools and enough tests, CI, and smoke verification to start replacing example behavior with real domain logic.

Included:

  • Strict TypeScript build on Node.js 20 or newer.

  • MCP SDK server with structured input and output schemas.

  • Two read-only example tools: echo and server_status.

  • Node built-in unit tests and an in-memory MCP integration test.

  • Local launcher for actual mcp-smoke startup and tool discovery.

  • GitHub Actions checks for typecheck, tests, build, and smoke verification.

Run With npx

After npm publication, run the pinned starter server without cloning:

npx -y ryanngit-mcp-server-starter@0.1.0

The process uses stdio and waits silently for MCP JSON-RPC input. Logs belong on stderr so stdout remains protocol-only.

For source development after GitHub publication:

git clone https://github.com/ryanngit/mcp-server-starter.git
cd mcp-server-starter
npm ci
npm run verify
npm run build
node .\dist\src\index.js

Related MCP server: MCP AI Chat LangChain

Claude Desktop

Add this entry to Claude Desktop configuration. It uses the future pinned npm release and requires no local source path.

{
  "mcpServers": {
    "mcp-server-starter": {
      "command": "npx",
      "args": ["-y", "ryanngit-mcp-server-starter@0.1.0"]
    }
  }
}

Configuration locations:

  • Windows: %APPDATA%\Claude\claude_desktop_config.json

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

Save the file and restart Claude Desktop. On Windows, if Claude cannot resolve npx, use "command": "cmd" and prepend "/c", "npx" to args.

Example Tools

Echo validated input:

{
  "name": "echo",
  "arguments": { "message": "hello MCP" },
  "result": { "message": "hello MCP", "characterCount": 9 }
}

Read server identity:

{
  "name": "server_status",
  "arguments": {},
  "result": {
    "status": "ok",
    "server": "mcp-server-starter",
    "version": "0.1.0"
  }
}

Project Layout

src/index.ts                 stdio entrypoint
src/config.ts                shared server name and version
src/server.ts                MCP registration
src/tools.ts                 schemas and typed handlers
scripts/run-mcp-smoke.ts     local smoke launcher
test/                        unit and MCP integration tests
.github/workflows/ci.yml     continuous integration

Development

npm run typecheck
npm test
npm run verify
npm audit --audit-level=high
npm pack --dry-run --json

Package metadata exposes dist/src/server.js and the executable mcp-server-starter bin. Package tests guard repository and license metadata against unresolved publication markers.

Run mcp-smoke

Python 3.11 or newer is needed only for this optional check.

git clone --branch v0.1.0 --depth 1 https://github.com/ryanngit/mcp-smoke.git .mcp-smoke
$env:MCP_SMOKE_PATH = (Resolve-Path .\.mcp-smoke\mcp_smoke.py)
npm run smoke

macOS or Linux:

git clone --branch v0.1.0 --depth 1 https://github.com/ryanngit/mcp-smoke.git .mcp-smoke
MCP_SMOKE_PATH="$PWD/.mcp-smoke/mcp_smoke.py" npm run smoke

The launcher starts the built server, initializes MCP, calls tools/list, and requires at least one tool. It does not invoke tools or certify domain behavior. Server and report identity derive from SERVER_NAME and SERVER_VERSION in src/config.ts.

Optional variables:

Variable

Purpose

MCP_SMOKE_PATH

Required path to mcp_smoke.py.

MCP_SMOKE_OUT

Report directory; defaults to mcp-smoke-out.

PYTHON

Python executable; defaults to python on Windows and python3 elsewhere.

Customize

  1. Change package name, description, repository URLs, and bin name in package.json.

  2. Change server name and version once in src/config.ts; MCP metadata, status output, error prefix, and smoke identity derive from that config.

  3. Replace example schemas and handlers in src/tools.ts.

  4. Register tools in src/server.ts; keep stdout protocol-only.

  5. Set license year and holder for the resulting project.

  6. Run npm run verify, npm run smoke, and npm pack --dry-run --json.

Input schemas are trust boundaries. Keep limits and validation for external values. Return isError: true for expected tool failures instead of printing errors to stdout.

Limitations

  • This starter provides no authentication, persistence, prompts, resources, HTTP transport, deployment configuration, or production observability.

  • Example tools are intentionally local and stateless.

  • mcp-smoke verifies startup and tool discovery only.

  • Renaming requires synchronized package metadata and src/config.ts changes.

Support

Search or open a reproducible report in GitHub Issues. Include starter version, Node.js version, platform, sanitized config, and error text. Do not include credentials or private conversation content.

License

MIT. Copyright (c) 2026 ryanngit.

Available Tools

1 tool
echoEchoA
Read-onlyIdempotent

Return validated text and its Unicode character count.

ParametersJSON Schema
NameRequiredDescriptionDefault
messageYes

Output Schema

ParametersJSON Schema
NameRequiredDescription
messageYes
characterCountYes

TDQS

A4.3/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

The description adds 'validated text' which suggests input validation, beyond what annotations provide (readOnlyHint, idempotentHint). Annotations already indicate a safe, idempotent operation. The description complements them without contradiction.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, clear sentence with no extraneous words. It is front-loaded and perfectly concise for the tool's simplicity.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's simplicity, good annotations, and existence of an output schema, the description is complete. It explains the core functionality and return value without requiring further detail.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate. It mentions 'validated text' which hints at validation (likely the min/max length) but does not explicitly describe the 'message' parameter's purpose. The parameter is named 'message', so its purpose is partially inferable, but more detail would be better.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool returns validated text and Unicode character count. This goes beyond the name 'echo' by specifying the output includes validation and character count, distinguishing it from a simple echo. With no sibling tools, there is no ambiguity.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage for getting character count of validated text. Since there are no sibling tools, explicit when-to-use or alternatives are not critical. The description is straightforward and sufficient for a simple utility tool.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. 1 tool updatev0.1.0
    • First observedecho

TDQS

A4.2/5.0
Disambiguation5/5

Only one tool exists, so there is no ambiguity between tools.

Naming Consistency5/5

With a single tool, naming is inherently consistent.

Tool Count3/5

A single tool is borderline for a server labeled 'starter'; it may be intended as a minimal example, but it feels thin for typical use.

Completeness3/5

The domain is unclear; while the tool does its job, the server lacks any broader coverage for a meaningful domain, making completeness hard to assess.

Maintenance

ActivitySlowing
ResponsivenessSyncing

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • A
    license
    D
    quality
    D
    maintenance
    A minimal Model Context Protocol server in TypeScript that demonstrates MCP-compliant resources and tools for LLMs, featuring simple resources and a basic tool that echoes messages or returns greetings.
    1
    5
    Apache 2.0
  • F
    license
    A
    quality
    C
    maintenance
    A minimal starting point for a Model Context Protocol server with stdio transport and one tool, enabling quick setup and custom tool addition.
    1
    -

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/ryanngit/mcp-server-starter'

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