MCP (Model Context Protocol) Servers for GreenNode services. Provides AI assistants with tools to manage GreenNode infrastructure from natural language.
The Model Context Protocol lets AI assistants (Claude, Cursor, Gemini, etc.) interact with external tools and data sources. MCP servers expose tools that AI can call to perform actions on your behalf.
| Server | Description |
|---|---|
| GreenNode MCP Server | Manage GreenNode services via OpenAPI specs + K8s resource management |
- Python 3.10 or later
- uv package manager (recommended)
- GreenNode credentials — via environment variables or credentials file
Option A: Environment variables
export GRN_ACCESS_KEY_ID=your-client-id
export GRN_SECRET_ACCESS_KEY=your-client-secret
export GRN_DEFAULT_REGION=HCM-3Option B: Credentials file (via GreenNode CLI)
pip install grncli
grn configureThis creates ~/.greenode/credentials which all MCP servers read automatically. Environment variables take priority over the credentials file.
Note: All MCP servers require credentials configured via one of these methods.
Install and run with uvx:
uvx greenode-mcp-server{
"mcpServers": {
"greennode": {
"command": "uvx",
"args": ["greenode-mcp-server", "--allow-write"]
}
}
}greenode-mcp/
├── src/
│ └── greenode-mcp-server/ # GreenNode MCP Server
│ ├── README.md # Server-specific docs, tools, security
│ ├── pyproject.toml # Package config + dependencies
│ ├── specs/ # Bundled OpenAPI specs (*.json)
│ ├── greennode/
│ │ └── greenode_mcp_server/ # Source code
│ └── tests/ # Test suite
├── scripts/ # Release scripts
├── docs/ # Development guide
├── CLAUDE.md # AI assistant conventions
└── pyproject.toml # Root tool config
Other product teams can add their MCP server:
- Create
src/<product>-mcp-server/directory - Add
pyproject.toml,LICENSE,NOTICE,CHANGELOG.md,.gitignore,.python-version - Create
greennode/<product>_mcp_server/for source code - Add
tests/directory - Add
README.mdwith tools, config, security docs - Update the Available MCP Servers table above
See GreenNode MCP Server as reference.
All GreenNode MCP servers share these security principles:
- Read-only by default — Write operations require explicit
--allow-writeflag - Sensitive data protection — Kubernetes Secrets require
--allow-sensitive-data-access - Credential security —
~/.greenode/credentialsstored with0600permissions - Input validation — All resource IDs validated to prevent path traversal
- Token handling — In memory only, never written to disk or logged
- Request safety — 30s timeout, retry with exponential backoff
The MCP protocol defines two standard transport mechanisms:
- stdio — communication over standard in/out. Default for all servers.
- Streamable HTTP — HTTP-based transport enabling remote hosting.
| Transport | Status |
|---|---|
| stdio | Supported (default) |
| SSE (Server Sent Events) | Removed — deprecated per MCP spec 2025-03-26 |
| Streamable HTTP | Supported in greenode-mcp-server via --transport streamable-http |
All servers in this repository default to stdio for local AI assistant use. Streamable HTTP is available for self-hosted deployments. See each server's README for details.
- Open an issue — Bug reports and feature requests
- Search existing issues before opening a new one
- GreenNode MCP Server — Tools, configuration, and security details
- Development Guide — Contributing, CI/CD, release process
- GreenNode CLI — CLI companion tool
- MCP Protocol — Model Context Protocol specification
- VNG Cloud Console
Apache License 2.0 — see LICENSE.