Skip to main content
Glama
impossible-mcp

impossible-mcp

by impossibleG

Impossible MCP Template

A TypeScript foundation for building Model Context Protocol servers that run locally over stdio or remotely over Streamable HTTP. Fork it, replace the example capabilities, and keep the operational pieces.

Included

  • MCP tools, resources, prompts, and parameterized resources

  • stdio and Streamable HTTP transports from one server factory

  • health and readiness routes for HTTP deployments

  • validated environment configuration and structured logs

  • graceful process shutdown

  • strict TypeScript, tests, coverage gates, linting, formatting, and CI

  • Docker and Compose definitions

  • security, contribution, and release documentation

Related MCP server: mcp-server-starter-kit

Start locally

npm install
cp .env.example .env
npm run dev

The default transport is stdio. Run the HTTP service with:

MCP_TRANSPORT=http npm run dev

On PowerShell:

$env:MCP_TRANSPORT = "http"
npm run dev

The MCP endpoint is http://127.0.0.1:3333/mcp. Health checks are available at /healthz and /readyz.

Connect over stdio

Build the project and point an MCP host at the executable:

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

Make it yours

Start in src/server.ts. Replace the example echo and server-time tools, then update the resources and prompts. Keep application secrets in environment variables and add them to the logger's redaction paths.

The project separates transport wiring from capability registration. Tests can instantiate the server factory without opening a production port, and both transports expose the same behavior.

Commands

Command

Purpose

npm run dev

Run the server with file watching

npm run build

Compile the production package

npm test

Run the test suite once

npm run test:coverage

Enforce coverage thresholds

npm run lint

Check TypeScript and JavaScript rules

npm run format

Check repository formatting

npm run verify

Run the complete local verification pipeline

Documentation

License

MIT

Available Tools

2 tools
echoEcho textA

Return text to the caller with an optional prefix.

Inputs: text (required), prefix.

server-timeRead server timeA

Return the server's current time as an ISO-8601 value.

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.9/5.0

    Scored across 2 tools

    Disambiguation5/5

    The two tools have completely distinct purposes: one echoes text, the other returns the server time. There is no possibility of an agent confusing them.

    Naming Consistency3/5

    'echo' follows a verb style while 'server-time' uses a noun-phrase style with a hyphen, so the naming convention is not fully consistent. However, with only two tools, the mismatch is minor and both names are readable.

    Tool Count3/5

    Two tools is on the thin side for a server, but the functionality is simple and each tool serves a clear standalone purpose. The count feels minimal rather than excessive.

    Completeness3/5

    The server has no clearly defined domain, so there are no obvious CRUD gaps. As a minimal utility set, echo and server-time cover their stated functions, but the surface is too sparse to call it complete for any broader purpose.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      F
      maintenance
      A production-shaped starter for building MCP servers in TypeScript, featuring stdio and streamable HTTP transport, bearer auth, and example tools including ping and http_get_json with SSRF guards.
      2
      MIT
    • A
      license
      Not graded
      quality
      A
      maintenance
      Enables developers to build TypeScript MCP servers with minimal boilerplate by declaring tools, prompts, resources, and resource templates through an Express-like or decorator API.
      22 npm
      MIT