mcp-noderings
Official MCP Server for NodeRings, a marketplace for VPS providers.
The hosted remote endpoint is https://mcp.noderings.com/mcp (Streamable HTTP + OAuth). For one-click or agent install (Cline and similar clients), see llms-install.md.
Model Context Protocol server for Noderings. Curatedtools talk to the Noderings gRPC API using a service-account token. Writetools are off by default (tools.disableWrite: true). It does not importthe backend Go module and does not use the frontend OpenAPI TypeScriptpipeline.
Quick start (stdio)
export TOKEN_FILE=/path/to/sa.jwt # chmod 0600; do not export TOKEN in a shared shell
export NRMCP_BACKEND_GRPCADDRESS=127.0.0.1:10000
# or, if gRPC is unreachable: NRMCP_BACKEND_HTTPURL=https://gateway.example
go run ./cmd/mcp-noderings -t stdio
stdio is process trust: whoever can run the binary uses the SA. PreferTOKEN_FILE over TOKEN so the JWT is not in the environment. Logs go tostderr; stdout is MCP JSON-RPC only.
HTTP (streamable)
export TOKEN_FILE=/path/to/sa.jwt
export NRMCP_HTTP_SERVERAUTHTOKEN=caller-secret-token-32-bytes-min!! # required for HTTP (incl. loopback); ≥32 chars
go run ./cmd/mcp-noderings -c config.example.yaml \
-t streamable-http --address localhost:8000 --endpoint-path /mcp
Caller Authorization: Bearer is validated and stripped; outbound gRPC usesonly the process-owned SA token (TOKEN / TOKEN_FILE).
SSE (compat)
Prefer streamable-http. SSE is for old clients only. Same auth andHost/Origin rules. The GET stream lives at --endpoint-path (default /mcp);message POSTs go to /mcp/message?sessionId=… (mcp-go transport requirement —proxies may log that query). Sessions are still bound to the callerfingerprint. Streamable HTTP uses Mcp-Session-Id only. Writes are off unlessyou pass --disable-write=false.
export TOKEN_FILE=/path/to/sa.jwt
export NRMCP_HTTP_SERVERAUTHTOKEN=caller-secret-token-32-bytes-min!!
go run ./cmd/mcp-noderings -t sse --address localhost:8000 --endpoint-path /mcp
make run-stdio, make run-streamable-http, and make run-sse wrap the samecommands.
Client vs provider tools
Only tools relevant to the service account's organization are registered: clientorgs get VMs, DNS and marketplace search; provider orgs get nodes, platforms,regions, agents, customers, guest VMs, IPAM, templates, and preflight. Providerwrites (assign agent, create network or prefix, reserve an address, placementpolicy, create VM template) stay off unless --disable-write=false. Both orgtypes get identity, tickets and plans. The type is detected at startup(--org-type auto, the default) or pinned with --org-type client|provider.See configuration andpermissions.
Use in Cursor
This repository includes a Cursor plugin (.cursor-plugin/plugin.json andmcp.json) that connects to the hosted NodeRings MCP server athttps://mcp.noderings.com/mcp over Streamable HTTP with OAuth. Sign in withyour NodeRings account. After review, the plugin will be listed in theCursor Marketplace. Until then, add that URLas a remote MCP server in Cursor, or use the local stdio config below.
Use with Gemini CLI
This repository is a Gemini CLI extension. It connects to the same hostedNodeRings MCP server at https://mcp.noderings.com/mcp over Streamable HTTPwith OAuth. Sign in with your NodeRings account.
gemini extensions install https://github.com/noderings/mcp
After install, restart Gemini CLI. Use /mcp auth if you need to sign inagain.
Client config
Cursor (~/.cursor/mcp.json) stdio:
{
"mcpServers": {
"noderings": {
"command": "mcp-noderings",
"args": ["-t", "stdio"],
"env": {
"TOKEN_FILE": "/path/to/sa.jwt",
"NRMCP_BACKEND_GRPCADDRESS": "127.0.0.1:10000"
}
}
}
}
Streamable HTTP (remote / Kubernetes): URL https://mcp.example.com/mcp withAuthorization: Bearer <caller-token>. The caller token is not theNoderings SA JWT. The same process also serves /chatgpt, a filtered endpointfor the ChatGPT plugin directory that omits tools which start billed usage.Existing clients should keep using /mcp.
Claude Desktop uses the same stdio command / args / env shape undermcpServers.
docker run still needs TOKEN/TOKEN_FILE, a backend address, and (becauseCMD binds :8000) a caller token. Health is GET /healthz on :8081.
Generate protobuf clients
Public builds use the vendored protos in proto/v1 and the committed stubs ingen/proto/v1. Regenerate the stubs from that tree with:
make generate
make proto-sync is a maintainer command. It needs a Noderings backendcheckout and is documented in generate.md.
Build / test
make test
make build
Deploy
See Dockerfile and deploy/helm/noderings-mcp.
Helm fails closed until you set config.backend.organizationID,secrets.backendTokenSecretName, secrets.callerTokenSecretName,networkPolicy.ingressFrom, egressBackend selectors, andmetricsScrapeFrom (ClusterIP binds :8000, which is non-loopback).tlsInsecure is refused in-cluster. Service DNS and Ingress hostsare injected into config.http.allowedHosts. Render with the CI overlay:
make helm-template
In-cluster default transport is streamable-http with probes on the separatehealthz port. Optional Ingress also requires TLS and networkPolicy.enabled.networkPolicy.ingressFrom is required even for ClusterIP (nopodSelector: {}). Multi-replica or HPA requires sessionAffinity.enabled(in-process sessions). PDB is rendered when replicaCount >= 2 or HPAmaxReplicas >= 2 and uses IfHealthyBudget.Set production: true only with image.digest (sha256:…); the chartrefuses to render a production release without it.
Docs
- Architecture
- Configuration
- SA permission matrix
- Generate
- Threat model
- Security review
License
Apache-2.0. See LICENSE.
Security
Report vulnerabilities privately. See SECURITY.md.