Design Engineer Logo
Visit Repo
Open Graph preview

Lite MCP

A TypeScript framework for building MCP servers elegantly

Site favicon
🛠️ Development

Overview

LiteMCP

Description:
A TypeScript framework for building elegant protocol servers with full TypeScript support

Category: Development Framework

Overview:
LiteMCP provides a streamlined approach to building servers with three core components:

  1. Tools: Define executable functions for client invocation
  2. Resources: Manage data access (files, logs, images)
  3. Prompts: Create reusable templates and workflows

Key features:

  • Built-in error handling
  • Debugging CLI tools
  • Zod schema validation
  • Simple API design
  • Testing utilities

Quick Setup:

# Development testing
npx litemcp dev server.js
# or TypeScript
npx litemcp dev server.ts

# Web UI inspection
npx litemcp inspect server.js

Basic Server Configuration:

{
  "mcp-server-lite": {
    "command": "./node_modules/.bin/node",
    "args": ["./server.js"],
    "env": {
      "SERVER_KEY": "your_secret_key"
    }
  }
}

Usage Example:

import { LiteMCP } from "litemcp";
import { z } from "zod";

const server = new LiteMCP("demo", "1.0.0");

server.addTool({
  name: "add",
  description: "Add two numbers",
  parameters: z.object({
    a: z.number(),
    b: z.number(),
  }),
  execute: async (args) => args.a + args.b
});

server.start();

Related projects:

  • mcp-jina-reader
  • FastMCP (Python alternative)