LiteMCPSAFE
A TypeScript framework for building MCP servers elegantly
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
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 uniq
8a11c8060054OBSERVED · 2026-10-06Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control.
claude mcp add litemcp -- npx -y [email protected]
{
"mcpServers": {
"litemcp": {
"command": "npx",
"args": [
"-y",
"[email protected]"
]
}
}
}Exposed tools (5)
1 read · 4 write · 0 destructive.
| Tool | Risk | Description |
|---|---|---|
add | write | Add two numbers |
changes | read | Git diff or description of changes |
dev | write | Run server with mcp-cli |
git-commit | write | Generate a Git commit message |
inspect | write | Run server with MCP inspector |
Trust audit
SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | PASS |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- none-observed
- Network
- none-observed
- Shell
- none-observed
- Dependencies
- not all pinned
- Secrets in source
- none-found
Findings (1)
@modelcontextprotocol/sdk, citty, execa, mcp-proxy, zod-to-json-schema, @tsconfig/node22, @types/node, tsup
Gates applied: no_behavioural_pass.
8a11c8060054full audit observations/trust-audit/mcp-server/wong2__litemcp.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-06 | 8a11c8060054 | SAFE | B | 89 | first audit |
Questions
What is the LiteMCP MCP server?
A TypeScript framework for building MCP servers elegantly
What tools does LiteMCP expose?
5 in total: 1 read-only, 4 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is LiteMCP safe to connect to an agent?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B.
What credentials does LiteMCP need?
No credential environment variables were found in its source, so it appears to need none.
How does LiteMCP run?
It speaks stdio, so it runs as a local process your client starts. It is published on npm as litemcp at 0.9.0.
How current is this page?
The grade is for one exact copy of the source (8a11c8060054), read on 2026-10-06. The repository is watched and re-audited when it changes.