Minimal Node.js MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Minimal Node.js MCP Serverlist files in workspace"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Minimal Node.js MCP server
A small, stateless MCP server built with TypeScript, tsx, Zod, and the official
Model Context Protocol SDK.
Run
npm install
npm startOn Windows, running through npm.cmd can show Terminate batch job (Y/N)?
after Ctrl+C. That prompt comes from the Windows batch wrapper, not this server.
Once Server stopped safely. appears, active work has already finished and it is
safe to answer Y. To avoid the batch prompt entirely, launch Node directly:
node --import tsx src/index.tsThe MCP endpoint is http://localhost:5555/mcp. A readable health endpoint is
available at http://localhost:5555/health.
Choose another workspace or port:
npm start -- --cwd ./my-workspace --port 6000--cwd is resolved from the project root/current launch directory. When omitted,
the server creates:
sandbox/yymmdd-hhMMssThe timestamp is captured once, when the server process starts. For example:
sandbox/260729-013045.
Related MCP server: MCP Server
Stateless behavior
This server intentionally uses stateless Streamable HTTP. It does not issue or
require an Mcp-Session-Id; every MCP request can be handled independently.
The configured workspace and its files still persist for the lifetime of the
server process (and on disk afterward).
Each run_cmd call starts a new shell process in the configured workspace.
Shell-local state such as cd, aliases, and environment variables does not carry
over to later tool calls. To work in a subdirectory for one command, use a single
command such as cd project && npm test.
Models should use ls, read_file, write_file, mkdir, and delete_file
instead of shell commands whenever one of those tools matches the operation.
This is especially important on Windows: a process started by run_cmd can keep
a file open, and Windows will not allow either the filesystem tool or a shell
command to delete that file until the owning process exits.
Use with llama.cpp WebUI
Current llama.cpp WebUI releases support MCP over Streamable HTTP. This server allows browser CORS requests from every origin, including preflight and Chromium private-network requests, so it can be connected directly or through llama-server's built-in MCP proxy.
Start this MCP server:
npm startEither connect the WebUI directly, or start
llama-serverwith its MCP proxy:llama-server [your usual model options] --ui-mcp-proxyIn the llama.cpp WebUI MCP settings, add:
URL:
http://127.0.0.1:5555/mcpTransport: Streamable HTTP
Use llama-server proxy: optional
--webui-mcp-proxy is the deprecated name of the llama.cpp option; prefer
--ui-mcp-proxy. The WebUI may keep a live MCP connection and reconnect it, but
this server remains stateless and does not depend on transport-session continuity.
Press Ctrl+C once to stop accepting new connections and wait for active MCP requests (including file writes and commands) to finish. Press Ctrl+C a second time only when you intentionally want to force the process to stop.
Included tools
Filesystem:
ls,read_file,write_file,mkdir,delete_fileCommand:
run_cmdComputation:
js_calculatorReal world:
get_current_time
There is intentionally no command sandbox or path restriction.
js_calculator accepts JavaScript expressions as well as multiple statements.
Separate statements with semicolons; the final expression supplies the returned
value. For example, const x = pow(2, 10); x + log(E) returns 1025. Wrap a
final object literal in parentheses, such as const x = 2; ({ x, square: x*x }).
It is intended for calculations, not as a general Node.js runner; Node.js
process, require, filesystem, and network APIs are not provided.
Add a tool
Create or edit a module under src/tools, then add its exported array to
src/tools/index.ts:
{
name: "echo",
description: "Return the supplied text.",
inputSchema: {
text: z.string(),
},
handler: ({ text }) => ({ text }),
}The registry handles MCP registration, Zod validation, result serialization, and error conversion.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityCmaintenanceMCP Server that enables LLMs to interact with the local filesystem.Last updated182389MIT
- Alicense-qualityDmaintenanceA modular MCP server providing file operations, web search, URL scraping, and sandboxed command execution for LLM interactions.Last updated1MIT
- Alicense-qualityBmaintenanceA lightweight, stdio-based MCP server enabling AI assistants to perform local file system operations like reading, writing, searching, and executing commands.Last updated6,603MIT
- Alicense-qualityCmaintenanceA lightweight MCP server for file manipulation, code searching, and shell command execution, with optional semantic search using local embeddings.Last updated1MIT
Related MCP Connectors
MCP server for AI dialogue using various LLM models via AceDataCloud
Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer
Agent-native MCP server over the public saagarpatel.dev corpus. Read-only, stateless.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/dominhnanhh2009/mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server