nirutyodjai/Central-MCP-Server
If you are the rightful owner of Central-MCP-Server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
The Central MCP Server is a minimal server implementation designed to manage and distribute shared configuration and context data to clients.
Central MCP Server
This repo provides a minimal Central MCP Server and a tiny Node client to read shared config/context.
Quick start
-
Prepare local config (optional): create
C:/central-mcp-config.json
with keys likecentralMcpServerUrl
and optionallycentralMcpServerToken
andsecrets
. -
Install dependencies and start the server:
cd "C:\Central MCP Server"
npm install
node server.js
- Example: set environment token for clients and server
setx CENTRAL_MCP_SERVER_URL "http://localhost:5050"
setx CENTRAL_MCP_SERVER_TOKEN "your-shared-token"
setx CENTRAL_MCP_CLIENT_TOKEN "your-shared-token"
Node client usage
const MCPClient = require("./client/node/mcp-client");
const client = new MCPClient();
(async () => {
const cfg = await client.getAll();
console.log(cfg);
const secret = await client.get("mySecretKey");
console.log(secret);
})();
Security note
For production, use a secure secret store (Vault/KeyVault/Secrets Manager), TLS, and short-lived tokens. This example is for local/offline development and demos.