litemcp
A TypeScript framework for building MCP servers elegantly
claude mcp add --transport stdio wong2-litemcp npx litemcp dev server.js
How to use
LiteMCP is a TypeScript framework for building MCP (Model Context Protocol) servers. It provides a structured way to define Tools (executable actions), Resources (data exposures), and Prompts (reusable LLM-facing templates), along with built-in logging, error handling, and an integrated CLI for testing and debugging. You can extend your server with strongly-typed definitions, add resources that can be loaded on demand, and expose tools that clients (including LLMs) can call to perform actions. The project includes examples showing how to add tools, resources, and prompts, and demonstrates how to start the server and test it using the mcp-cli.
To run and test your server locally, install the LiteMCP package, then start the server via the included CLI (e.g., npx litemcp dev server.js). Tools and resources you define will be exposed through the MCP interface, and you can inspect, test, and debug using the MCP Inspector or the mcp-cli tool. If you need to expose the server via SSE, you can configure transport settings when starting the server and connect clients accordingly.
How to install
Prerequisites:
- Node.js and npm installed on your system.
- Basic familiarity with TypeScript if you plan to write typed tools/resources.
Installation steps:
- Initialize your project (if needed):
- mkdir my-mcp-server && cd my-mcp-server
- npm init -y
- Install LiteMCP and Zod (for schema validation used by tools/resources):
- npm install litemcp zod
- (Optional) If you already have a TypeScript setup, ensure ts-node or your build process is configured to compile TypeScript if you intend to run TS directly.
- Start using LiteMCP in your code by following the Quickstart examples in the README, then run the server using the mcp-cli via npx litemcp dev server.js (or your configured entry point).
Additional notes
Notes and tips:
- The repository documentation mentions that LiteMCP is deprecated in favor of the official TypeScript SDK, and that the CLI commands can be used independently via mcp-cli. If you rely on CLI tooling, you can still use npx litemcp for testing and debugging.
- The Quickstart demonstrates using npx litemcp dev server.js to run a server. You can also inspect your server with the MCP Inspector (npx litemcp inspect server.js).
- If you plan to expose SSE transport, you can start the server with transportType: 'sse' and configure the SSE endpoint and port. Ensure your environment supports the chosen transport and firewall rules allow the configured port.
- The repository emphasizes TypeScript support, built-in logging, and structured definitions for tools, resources, and prompts. Use zod for runtime validation of tool parameters.
Related MCP Servers
obsidian -tools
Add Obsidian integrations like semantic search and custom Templater prompts to Claude or any MCP client.
ironcurtain
A secure* runtime for autonomous AI agents. Policy from plain-English constitutions. (*https://ironcurtain.dev)
CanvasMCPClient
Canvas MCP Client is an open-source, self-hostable dashboard application built around an infinite, zoomable, and pannable canvas. It provides a unified interface for interacting with multiple MCP (Model Context Protocol) servers through a flexible, widget-based system.
vikunja
Model Context Protocol server for Vikunja task management. Enables AI assistants to interact with Vikunja instances via MCP.
grok-faf
First MCP server for Grok | FAST⚡️AF • URL-based AI context • Vercel-deployed
mcp-turso
MCP server for interacting with Turso-hosted LibSQL databases