Skip to main content
Glama
MCP Starter Server

MCP Starter Server

by askarthikey

MCP Starter Server (TypeScript)

A starter Model Context Protocol (MCP) server built in Node.js / TypeScript using the official @modelcontextprotocol/sdk.

Features

  • πŸ› οΈ Tools:

    • add_numbers: Adds two numbers and returns formatted result.

    • get_system_status: Returns system uptime, platform, Node version, and timestamp.

  • πŸ“„ Resources:

    • info://welcome: Text resource providing welcome information.

    • config://app-settings: JSON resource exposing server configuration settings.

  • πŸ’‘ Prompts:

    • code_review: Prompt template for structured code review requests.

    • summarize_notes: Prompt template for summarizing meeting notes into bullet points.


Related MCP server: MCP AI Chat LangChain

Quick Start

1. Install Dependencies

npm install

2. Build the Server

npm run build

This compiles TypeScript source from src/ to dist/index.js.

3. Run in Development Mode

npm run dev

4. Test with MCP Inspector

You can visually test and interact with your tools, resources, and prompts using the official MCP Inspector:

npx @modelcontextprotocol/inspector node dist/index.js

Integrating with MCP Clients

Antigravity / Claude Desktop / Cursor Configuration

Add this server to your client's MCP server configuration file (e.g. mcp_config.json or claude_desktop_config.json):

{
  "mcpServers": {
    "starter-mcp-server": {
      "command": "node",
      "args": [
        "C:/Users/naska/coding/dev/mcp-temp/dist/index.js"
      ]
    }
  }
}

Folder Structure

.
β”œβ”€β”€ src/
β”‚   └── index.ts        # Main MCP Server implementation (Tools, Resources, Prompts)
β”œβ”€β”€ dist/               # Compiled JavaScript outputs (generated on build)
β”œβ”€β”€ package.json        # Dependencies and build scripts
β”œβ”€β”€ tsconfig.json       # TypeScript compiler settings
└── README.md           # Documentation

Available Tools

2 tools
add_numbersA

Adds two numbers together and returns the result.

Inputs: a (required), b (required).

get_system_statusA

Retrieves system runtime status including Node version, OS, uptime, and timestamp.

Inputs: no named parameters.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.8/5.0

    Scored across 2 tools

    Disambiguation5/5

    add_numbers and get_system_status have completely separate purposes, so an agent would not confuse them. Each tool's name and description uniquely identify its intended action.

    Naming Consistency5/5

    Both tools use a consistent verb_noun snake_case pattern: add_numbers and get_system_status. This makes the naming predictable and easy to extend.

    Tool Count3/5

    Two tools is on the low end and feels thin for an MCP server. However, for a starter server it is defensible, so the count is borderline rather than unreasonable.

    Completeness4/5

    The two tools cover what a minimal starter server would likely demonstrate: a computational example and a system information example. There are no obvious missing operations given the small scope, though the surface is not broad enough for general-purpose use.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      Not graded
      maintenance
      A demonstration MCP server that provides calculator tools for arithmetic operations, personalized greeting resources, and code review prompt templates. Enables users to perform basic math calculations, generate dynamic greetings, and access reusable code review templates through the Model Context Protocol.
      MIT
    • A
      license
      C
      quality
      D
      maintenance
      A Model Context Protocol server that provides tools for mathematical calculations and directory listing, alongside prompt templates for code reviews and explanations. It enables file system access and resource reading through stdio transport.
      2
      MIT