GreenNode MCP Server
Enables AI assistants to manage VNG Cloud infrastructure including compute, storage, networking, and Kubernetes resources through natural language commands.
README
GreenNode MCP Servers
MCP (Model Context Protocol) Servers for GreenNode services. Provides AI assistants with tools to manage GreenNode infrastructure from natural language.
What is MCP?
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.
This repo ships one server — GreenNode MCP Server — which covers all VNG Cloud products (VKS, vServer, vLB, vStorage, vNetwork, DNS, CDN, vMonitor, vDB, ...) via a dynamic spec registry, plus Kubernetes resource management tools. New products appear automatically when they're added to the VNG Cloud docs portal — no server release needed.
Prerequisites
- Python 3.10 or later
- uv package manager (recommended)
- GreenNode credentials — via environment variables or credentials file
Credential setup
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-3
export GRN_DEFAULT_PROJECT_ID=pro-xxxxxxxx # required for many APIs that embed project in the URL
Option B: GreenNode CLI (recommended)
grn configure
The wizard auto-detects your project_id and writes:
~/.greenode/credentials—client_id,client_secret~/.greenode/config—region,project_id,output
See greenode-cli.
Environment variables take priority over the files. All MCP servers in this repo read these same paths and env vars.
Quick Start
GreenNode MCP Server supports two transport modes. Pick based on where your AI client runs:
| Mode | Use when | Setup effort |
|---|---|---|
| stdio | Client on the same machine (Claude Code/Desktop, Cursor local) | Zero — one line |
| Streamable HTTP — local | Testing HTTP, or client is a local Python agent / MCP Inspector | One command |
| Streamable HTTP — remote | Team share, remote agents, deploy to server / container | Full runbook (docs/STREAMABLE-HTTP.md) |
Mode 1 — stdio (local, default)
Claude Code:
claude mcp add greenode -- uvx greenode-mcp-server --allow-write
Claude Desktop — edit ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"greenode": {
"command": "uvx",
"args": ["greenode-mcp-server", "--allow-write"]
}
}
}
Cursor — Settings → MCP Servers → paste the same JSON.
Other MCP clients — configure uvx greenode-mcp-server --allow-write as the stdio command.
Mode 2 — Streamable HTTP (local)
Run the server as an HTTP endpoint on your own machine. Useful for testing the HTTP surface, MCP Inspector, or local Python agents.
# Terminal 1 — start the server
export GRN_MCP_API_KEY=$(openssl rand -hex 32)
uvx greenode-mcp-server \
--transport streamable-http \
--host 127.0.0.1 --port 8000 \
--allow-write \
--api-key "$GRN_MCP_API_KEY"
# Terminal 2 — connect Claude Code to it
claude mcp add greenode --transport http \
--url http://127.0.0.1:8000/mcp \
--header "Authorization: Bearer $GRN_MCP_API_KEY"
Smoke test with curl:
curl -sN -X POST http://127.0.0.1:8000/mcp \
-H "Authorization: Bearer $GRN_MCP_API_KEY" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' | head -5
Or from a Python agent:
from mcp import ClientSession
from mcp.client.streamable_http import streamablehttp_client
async with streamablehttp_client(
"http://127.0.0.1:8000/mcp",
headers={"Authorization": f"Bearer {api_key}"},
) as (read, write, _):
async with ClientSession(read, write) as session:
await session.initialize()
tools = await session.list_tools()
Mode 3 — Streamable HTTP (remote, team-shared)
Run on a VM/container behind nginx + TLS; team members connect over HTTPS.
TL;DR on the server:
# 1. Install Docker + nginx + certbot on an Ubuntu VM
# 2. Put credentials in /opt/greenode-mcp/.env (chmod 600)
# 3. docker compose up -d (see docs/STREAMABLE-HTTP.md for compose file)
# 4. nginx + certbot --nginx -d mcp.yourteam.com
Team members connect:
# API key shared via vault (1Password, Vault, etc.) — never Slack plaintext
claude mcp add greenode --transport http \
--url https://mcp.yourteam.com/mcp \
--header "Authorization: Bearer $GRN_MCP_API_KEY"
Full runbook (VM provisioning, DNS, nginx config, TLS, firewall, monitoring, key rotation): docs/STREAMABLE-HTTP.md.
Verify connected
Inside Claude Code:
/mcp → should show greenode ✓ Connected
search_api("cluster") → should return VKS endpoints
Repository Structure
greenode-mcp/
├── src/
│ └── greenode-mcp-server/ # GreenNode MCP Server
│ ├── README.md # Server-specific docs, tools, security
│ ├── pyproject.toml # Package config + dependencies
│ ├── greennode/
│ │ └── greenode_mcp_server/ # Source code (incl. registry/ module)
│ └── tests/ # Test suite
├── scripts/ # Release scripts
├── docs/ # Development guide
├── CLAUDE.md # AI assistant conventions
└── pyproject.toml # Root tool config
Security
Detailed security rules in server README. At a glance:
- Read-only by default — write ops require
--allow-write - Sensitive data — Kubernetes Secrets require
--allow-sensitive-data-access - Credentials — file permissions
0600, never logged or written beyond~/.greenode/ - Transport —
stdioandstreamable-httponly; SSE is removed per MCP spec 2025-03-26
Getting Help
- Open an issue — Bug reports and feature requests
- Search existing issues before opening a new one
More Resources
- 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
License
Apache License 2.0 — see LICENSE.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.