{"id":26937432,"url":"https://github.com/bright8192/esxi-mcp-server","last_synced_at":"2025-04-02T13:15:28.585Z","repository":{"id":282200192,"uuid":"947797382","full_name":"bright8192/esxi-mcp-server","owner":"bright8192","description":"A VMware ESXi/vCenter management server based on MCP (Model Control Protocol), providing simple REST API interfaces for virtual machine management.","archived":false,"fork":false,"pushed_at":"2025-03-13T09:22:27.000Z","size":14,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-13T10:26:37.124Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bright8192.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-13T09:10:33.000Z","updated_at":"2025-03-13T09:22:31.000Z","dependencies_parsed_at":"2025-03-13T13:45:24.965Z","dependency_job_id":null,"html_url":"https://github.com/bright8192/esxi-mcp-server","commit_stats":null,"previous_names":["bright8192/esxi-mcp-server"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bright8192%2Fesxi-mcp-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bright8192%2Fesxi-mcp-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bright8192%2Fesxi-mcp-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bright8192%2Fesxi-mcp-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bright8192","download_url":"https://codeload.github.com/bright8192/esxi-mcp-server/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246819775,"owners_count":20839095,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-04-02T13:15:13.539Z","updated_at":"2025-04-02T13:15:28.572Z","avatar_url":"https://github.com/bright8192.png","language":"Python","funding_links":[],"categories":["Cloud Infrastructure","Cloud \u0026 Infrastructure","Cloud \u0026 DevOps MCP Servers","MCP 服务器精选列表","🤖 AI/ML","Infrastructure as Code","Cloud Platforms","Monitoring and Logging","サーバー実装","☁️ Cloud Platforms","Table of Contents"],"sub_categories":["☁️ Cloud Providers","Virtualization \u0026 IaC","☁️ 云平台与服务集成 (AWS, Cloudflare, Azure, K8s, etc.)","How to Submit","🧮 \u003ca name=\"data-science-tools\"\u003e\u003c/a\u003eデータサイエンスツール","Cloud Platforms","☁️ \u003ca name=\"cloud-platforms\"\u003e\u003c/a\u003eクラウドプラットフォーム"],"readme":"# ESXi MCP Server\n\nA VMware ESXi/vCenter management server based on MCP (Model Control Protocol), providing simple REST API interfaces for virtual machine management.\n\n## Features\n\n- Support for ESXi and vCenter Server connections\n- Real-time communication based on SSE (Server-Sent Events)\n- RESTful API interface with JSON-RPC support\n- API key authentication\n- Complete virtual machine lifecycle management\n- Real-time performance monitoring\n- SSL/TLS secure connection support\n- Flexible configuration options (YAML/JSON/Environment Variables)\n\n## Core Functions\n\n- Virtual Machine Management\n  - Create VM\n  - Clone VM\n  - Delete VM\n  - Power On/Off operations\n  - List all VMs\n- Performance Monitoring\n  - CPU usage\n  - Memory usage\n  - Storage usage\n  - Network traffic statistics\n\n## Requirements\n\n- Python 3.7+\n- pyVmomi\n- PyYAML\n- uvicorn\n- mcp-core (Machine Control Protocol core library)\n\n## Quick Start\n\n1. Install dependencies:\n\n```bash\npip install pyvmomi pyyaml uvicorn mcp-core\n```\n\n2. Create configuration file `config.yaml`:\n\n```yaml\nvcenter_host: \"your-vcenter-ip\"\nvcenter_user: \"administrator@vsphere.local\"\nvcenter_password: \"your-password\"\ndatacenter: \"your-datacenter\"        # Optional\ncluster: \"your-cluster\"              # Optional\ndatastore: \"your-datastore\"          # Optional\nnetwork: \"VM Network\"                # Optional\ninsecure: true                       # Skip SSL certificate verification\napi_key: \"your-api-key\"             # API access key\nlog_file: \"./logs/vmware_mcp.log\"   # Log file path\nlog_level: \"INFO\"                    # Log level\n```\n\n3. Run the server:\n\n```bash\npython server.py -c config.yaml\n```\n\n## API Interface\n\n### Authentication\n\nAll privileged operations require authentication first:\n\n```http\nPOST /sse/messages\nAuthorization: Bearer your-api-key\n```\n\n### Main Tool Interfaces\n\n1. Create VM\n```json\n{\n    \"name\": \"vm-name\",\n    \"cpu\": 2,\n    \"memory\": 4096,\n    \"datastore\": \"datastore-name\",\n    \"network\": \"network-name\"\n}\n```\n\n2. Clone VM\n```json\n{\n    \"template_name\": \"source-vm\",\n    \"new_name\": \"new-vm-name\"\n}\n```\n\n3. Delete VM\n```json\n{\n    \"name\": \"vm-name\"\n}\n```\n\n4. Power Operations\n```json\n{\n    \"name\": \"vm-name\"\n}\n```\n\n### Resource Monitoring Interface\n\nGet VM performance data:\n```http\nGET vmstats://{vm_name}\n```\n\n## Configuration\n\n| Parameter | Description | Required | Default |\n|-----------|-------------|----------|---------|\n| vcenter_host | vCenter/ESXi server address | Yes | - |\n| vcenter_user | Login username | Yes | - |\n| vcenter_password | Login password | Yes | - |\n| datacenter | Datacenter name | No | Auto-select first |\n| cluster | Cluster name | No | Auto-select first |\n| datastore | Storage name | No | Auto-select largest available |\n| network | Network name | No | VM Network |\n| insecure | Skip SSL verification | No | false |\n| api_key | API access key | No | - |\n| log_file | Log file path | No | Console output |\n| log_level | Log level | No | INFO |\n\n## Environment Variables\n\nAll configuration items support environment variable settings, following these naming rules:\n- VCENTER_HOST\n- VCENTER_USER\n- VCENTER_PASSWORD\n- VCENTER_DATACENTER\n- VCENTER_CLUSTER\n- VCENTER_DATASTORE\n- VCENTER_NETWORK\n- VCENTER_INSECURE\n- MCP_API_KEY\n- MCP_LOG_FILE\n- MCP_LOG_LEVEL\n\n## Security Recommendations\n\n1. Production Environment:\n   - Use valid SSL certificates\n   - Enable API key authentication\n   - Set appropriate log levels\n   - Restrict API access scope\n\n2. Testing Environment:\n   - Set insecure: true to skip SSL verification\n   - Use more detailed log level (DEBUG)\n\n## License\n\nMIT License\n\n## Contributing\n\nIssues and Pull Requests are welcome!\n\n## Changelog\n\n### v0.0.1\n- Initial release\n- Basic VM management functionality\n- SSE communication support\n- API key authentication\n- Performance monitoring\n\n## Author\n\nBright8192\n\n## Acknowledgments\n\n- VMware pyvmomi team\n- MCP Protocol development team\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbright8192%2Fesxi-mcp-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbright8192%2Fesxi-mcp-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbright8192%2Fesxi-mcp-server/lists"}