Local LLM 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., "@Local LLM MCP serverlist employees in the Engineering department"
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.
Local LLM MCP server
A trusted-backend MCP server built with Node.js and FastMCP. It exposes tools over the MCP Streamable HTTP transport at http://127.0.0.1:3333/mcp and authenticates every MCP request with one shared bearer token.
There is no OAuth, user login, or browser connect flow. Keep this service on localhost or a private network that only the gateway can reach: possession of the shared token grants access to every registered tool.
Run locally
Requires Node.js 22 or later.
npm install
cp .env.example .env
# Replace MCP_SERVICE_TOKEN in .env with a long random secret.
npm startFor development with file watching, use npm run dev. For a compiled production run, use npm run build followed by npm run start:prod.
The server defaults to HOST=127.0.0.1, PORT=3333, and the fixed endpoint /mcp. Bind to a private interface only when the gateway runs on another machine.
Related MCP server: Pistachio MCP Server
Tools
All current tools are named so the gateway exposes them in its default read_only mode:
get_server_time— returns the current UTC time as an ISO string.get_echo— returns a supplied message to verify tool arguments and results.list_examples— returns sample calls/tools and supports an optionallimit.list_hrms_employees— lists active employees with optionaldepartment,province, andbranchfilters. WhenHRMS_BASE_URLis set it fetches the live HRMS active-employee OData feed; otherwise it returns sample data shaped like that feed (sourcein the result ishrmsorsample).
X-User-Email is accepted when supplied and stored in the FastMCP session as userEmail. It is optional and is not currently used to authorize or scope tools.
Project structure
src/
├── index.ts # Process startup and shutdown
├── config.ts # Environment parsing and validation
├── server.ts # FastMCP server construction
├── auth/
│ └── service-token.ts # Shared bearer-token authentication
├── integrations/
│ └── hrms/
│ └── client.ts # Live HRMS active-employee OData client
└── tools/
├── index.ts # Central tool-group registration
├── basic/
│ ├── index.ts
│ ├── get-server-time.ts
│ ├── get-echo.ts
│ └── list-examples.ts
└── hrms/
├── index.ts
├── list-employees.ts # MCP schema and execution adapter
├── filter.ts # Shared in-memory filtering
├── sample-data.ts # Mock data (fallback when HRMS_BASE_URL unset)
└── types.ts
test/
├── index.ts # Test entrypoint
├── auth.test.ts
├── config.test.ts
└── hrms.test.tsEach domain owns its tools and exports one registration function from its index.ts. The central src/tools/index.ts is the only place that connects tool groups to the server.
The HRMS integration lives in src/integrations/hrms/client.ts, which fetches the active-employee OData feed (GET {HRMS_BASE_URL}) and returns its value array. list-employees.ts calls it when HRMS_BASE_URL is set and falls back to listSampleEmployees otherwise. The sample data mirrors the feed's field names (No, Full_Name, Department_Name, Province_Name, Branch_Name, …), so no field mapping is needed. The endpoint is currently network-trusted (no auth header); if it later requires credentials, add them as environment variables and set the header inside the client — keep HTTP handling in the integration client and the MCP parameter schema in the tool file.
For another domain, create src/tools/<domain>/, export register<Domain>Tools, and add that group to src/tools/index.ts. Use a read-style tool name (get_, list_, search_, and similar) when it should remain visible under the gateway's default read_only policy.
Connect the local LLM gateway
In /home/manoj/newlaptop/projects/python/local-ai-model-gateway/.env, set:
MCP_SERVER_URL=http://localhost:3333/mcp
MCP_AUTH_TOKEN=<the same value as this server's MCP_SERVICE_TOKEN>
MCP_TOOL_MODE=read_onlyFor write tools added later, switch to MCP_TOOL_MODE=allowlist and set MCP_TOOL_ALLOWLIST to exact comma-separated tool names, or deliberately use all. Restart the gateway after changing its environment.
With a valid gateway JWT, GET /v1/tools should list these tools with backend set to mcp. POST /v1/agent can then select and call them.
Test
npm test
npm run typecheckFor a manual protocol test, start the server and launch MCP Inspector:
npx @modelcontextprotocol/inspector http://localhost:3333/mcpConfigure the Inspector connection to send Authorization: Bearer <the value of MCP_SERVICE_TOKEN>. Missing or incorrect bearer credentials receive HTTP 401.
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
- -license-quality-maintenanceA production-ready TypeScript MCP server providing basic tools (add, echo, timestamp), resources (server info, greetings, data access), and prompt templates (analyze, code-review, summarize). Serves as a foundation for building custom MCP servers with extensible architecture.270
- Flicense-qualityDmaintenanceA remote MCP server built with Node.js and TypeScript that enables tool calls and prompt templates via streamable HTTP transport. It includes example implementations for a calculator and localized greetings, featuring built-in CORS support for web-based clients.
- Alicense-qualityDmaintenanceA lightweight Node.js-based MCP server that exposes custom tools via HTTP and Server-Sent Events (SSE) for clients like Postman. It allows users to register tools with type-safe validation to establish bidirectional communication with MCP clients.2,4861MIT
- Alicense-qualityCmaintenanceA Node/Express + PostgreSQL MCP server that exposes database-backed tools (list_cases, get_case, add_note) to AI clients, secured with bearer-token authentication.7ISC
Related MCP Connectors
AI Reasoning Cache & Consensus Layer with 11 MCP tools via Streamable HTTP.
Markdown-first MCP server for Notion API with 8 composite tools and 39 actions.
MCP server for Argo RPG Platform — connects AI assistants to campaign data via OAuth2
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/manojkiranti/local-llm-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server