Litemcp

Agent frameworks and SDKs

A TypeScript framework for building MCP servers elegantly.

Your AI app calls the Litemcp MCP server, which does the agent frameworks and SDKs work and sends the result back to the chat.

About Litemcp

Litemcp is a community MCP server from wong2, filed in our directory under agent frameworks and sdks. A TypeScript framework for building MCP servers elegantly.

Litemcp runs on your own machine: your AI app starts it with the command npx -y litemcp and talks to it over standard input and output.

At a glance

Publisher
wong2 (community)
Runs
Locally on your machine
Install from
Node.js package on npm: litemcp
Written in
TypeScript
License
MIT
GitHub stars
184

How to set up Litemcp

  1. Install Node.js on the machine that runs your AI app, because Litemcp starts with npx and downloads its package on first run.
  2. Check the Litemcp README for keys or settings; the registry lists none that Litemcp requires.
  3. Add Litemcp to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Litemcp tools to confirm the connection.
  5. Run one read-only task with Litemcp first, and keep your app asking before each tool call until the results look right.

Litemcp compared with similar servers

  • Cohort by congchuanling-dot has fewer GitHub stars than Litemcp (179 against 184); both are community servers, and both run locally.
  • Whoop by shashankswe2020-ux has more GitHub stars than Litemcp (185 against 184); both are community servers, and both run locally.
  • Davinci Resolve (hiteshK03) by hiteshK03 has fewer GitHub stars than Litemcp (179 against 184); both are community servers, and both run locally.

Before you connect Litemcp

  • Give Litemcp its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Litemcp tool call until you trust what it does with them.
  • Treat text that Litemcp fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Litemcp on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Litemcp

How marketing and sales teams put Litemcp to work, by company size. Pick the size closest to yours and start Litemcp on one use case.

Small business

  • A small business with a developer can use Litemcp to build one focused agent, such as lead follow-up, without a big platform.
  • Technical founders can prototype marketing agents with Litemcp and keep what works as a small, owned tool.
  • Litemcp runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Growth engineering teams can use Litemcp to build agents that combine CRM, analytics and content tools behind one workflow.
  • Marketing ops can standardize on Litemcp so every agent they ship has the same logging, approvals and error handling.
  • Start Litemcp on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprises can build on Litemcp with their own identity, policy and evaluation layers, so agents meet the same bar as other software.
  • Platform teams can use Litemcp to give business units a governed way to ship agents without each one starting from scratch.
  • Litemcp is a community server, so have security review the code and pin a version before Litemcp touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Litemcp README

From wong2/litemcp on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

LiteMCP

A TypeScript framework for building MCP (Model Context Protocol) servers elegantly

Deprecate notice:

Since the official SDK already offers a high-level API similar to this project, this project will no longer be maintained.

If you like the CLI commands in this project, you can use them independently: https://github.com/wong2/mcp-cli

Features

  • Simple Tool, Resource, Prompt definition
  • Full TypeScript support
  • Built-in logging
  • Built-in error handling
  • Built-in CLI for testing and debugging
  • Built-in support for SSE transport

Installation

npm install litemcp zod

Quickstart

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) => {
    return args.a + args.b;
  },
});

server.addResource({
  uri: "file:///logs/app.log",
  name: "Application Logs",
  mimeType: "text/plain",
  async load() {
    return {
      text: "Example log content",
    };
  },
});

server.start();

You can test the server in terminal with:

npx litemcp dev server.js

Core Concepts

Tools

Tools in MCP allow servers to expose executable functions that can be invoked by clients and used by LLMs to perform actions.

server.addTool({
  name: "fetch",
  description: "Fetch the content of a url",
  parameters: z.object({
    url: z.string(),
  }),
  execute: async (args) => {
    const content = await fetchWebpageContent(args.url);
    return content;
  },
});
Resources

Resources represent any kind of data that an MCP server wants to make available to clients. This can include:

  • File contents
  • Screenshots and images
  • Log files
  • And more

Each resource is identified by a unique URI and can contain either text or binary data.

server.addResource({
  uri: "file:///logs/app.log",
  name: "Application Logs",
  mimeType: "text/plain",
  async load() {
    return {
      text: await readLogFile(),
    };
  },
});

You can also return binary contents in load:

async load() {
  return {
    blob: 'base64-encoded-data'
  }
}
Prompts

Prompts enable servers to define reusable prompt templates and workflows that clients can easily surface to users and LLMs. They provide a powerful way to standardize and share common LLM interactions.

server.addPrompt({
  name: "git-commit",
  description: "Generate a Git commit message",
  arguments: [
    {
      name: "changes",
      description: "Git diff or description of changes",
      required: true,
    },
  ],
  load: async (args) => {
    return `Generate a concise but descriptive commit message for these changes:\n\n${args.changes}`;
  },
});
Logging

You can send log messages to the client with server.logger

server.addTool({
  name: "download",
  description: "Download a file from a url",
  parameters: z.object({
    url: z.string(),
  }),
  execute: async (args) => {
    server.logger.info("Downloading file", { url: args.url });
    // ...
    server.logger.info("Downloaded file", { url: args.url });
    return response;
  },
});

The logger object has the following methods:

  • debug(message: string, context?: JsonValue)
  • info(message: string, context?: JsonValue)
  • warn(message: string, context?: JsonValue)
  • error(message: string, context?: JsonValue)

Running Your Server

Debugging with mcp-cli

The fastest way to test and debug your server is with mcp-cli:

npx litemcp dev server.js
npx litemcp dev server.ts // ts files are also supported

This will run your server with mcp-cli for testing and debugging your MCP server in the terminal.

Inspect with MCP Inspector

Another way is to use the official MCP Inspector to inspect your server with a Web UI:

npx litemcp inspect server.js
SSE Transport

The servers are running with stdio transport by default. You can also run the server with SSE mode:

server.start({
  transportType: "sse",
  sse: {
    endpoint: "/sse",
    port: 8080,
  },
});

This will start the server and listen for SSE connections on http://localhost:8080/sse.

You can then connect to the server with SSE transport in the client.

Showcase

If you've developed a server using LiteMCP, please submit a PR to showcase it here!

Roadmap

  • Add support for Resource Templates

Related

  • mcp-cli - A CLI for testing and debugging MCP servers
  • mcpservers.org - A curated list of MCP servers
  • FastMCP - A Python library for MCP server development, inspiration for this project

Questions about Litemcp

What is the Litemcp MCP server?

A TypeScript framework for building MCP servers elegantly. Litemcp is maintained by wong2 on GitHub at wong2/litemcp, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Litemcp MCP server?

Add Litemcp to your AI app's MCP config with the command npx -y litemcp. In Claude Code, run claude mcp add --transport stdio litemcp -- npx -y litemcp. To run Litemcp this way you need Node.js installed.

Does Litemcp need an API key?

The registry lists no required keys for Litemcp. Check the Litemcp README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Litemcp an official MCP server?

No. Litemcp is a community server maintained by wong2. Community servers can be excellent; read the code and the open issues before you give Litemcp access to company data.

What license is Litemcp under?

Litemcp is released under the MIT license, according to its GitHub repository. The license covers the code of Litemcp; the service it connects to has its own terms.