Skip to main content
Glama

HPE OneView MCP Server

by Quazmoz

HPE OneView MCP Server

This project provides a Model Context Protocol (MCP) server for managing HPE OneView infrastructure. It is designed to be deployed as a Docker container and integrates with the HPE OneView REST API to enable AI agents to manage IT infrastructure.

Quick Start

To get started with the OneView MCP server, you will need to have Docker and Docker Compose installed.

  1. Clone the repository:

    git clone https://github.com/your-username/oneview-mcp-server.git cd oneview-mcp-server
  2. Create a

    Copy the .env.example file to .env and fill in the required environment variables.

    cp .env.example .env
  3. Run the server:

    docker-compose up -d

The server will be running on port 5000 by default. You can change the port by setting the PORT environment variable in the .env file.

Environment Variable Configuration

The following environment variables are required to run the OneView MCP server:

Variable

Description

Default

ONEVIEW_IP

The IP address of the HPE OneView appliance.

ONEVIEW_USERNAME

The username to use for authentication.

ONEVIEW_PASSWORD

The password to use for authentication.

ONEVIEW_API_VERSION

The API version to use.

101

ONEVIEW_VERIFY_SSL

Whether to verify the SSL certificate of the OneView appliance.

true

PORT

The port to run the MCP server on.

5000

Security Considerations

Credential Management

All credentials for the OneView MCP server are loaded exclusively from environment variables. It is crucial that you never hardcode, log, or display credentials in any output. The server is designed to fail fast on startup if the required credentials are missing.

Rate Limiting

The server implements rate limiting to prevent brute-force attacks on the OneView appliance.

SSL Certificate Handling

The ONEVIEW_VERIFY_SSL environment variable controls whether the SSL certificate of the OneView appliance is verified. By default, it is set to true. If you are using a self-signed certificate, you will need to set this variable to false.

Docker Deployment Guide

The OneView MCP server is designed to be deployed as a Docker container. The Dockerfile and docker-compose.yml files are provided to make it easy to build and run the server.

Building the Docker Image

To build the Docker image, run the following command:

docker build -t oneview-mcp-server .

Running the Docker Container

To run the Docker container, you can use the docker-compose.yml file provided.

docker-compose up -d

API Endpoint Reference

The OneView MCP server exposes the following tools:

  • oneview_list_servers: List all server hardware with details.

  • oneview_get_server: Get specific server details by ID.

  • oneview_power_server: Control server power state (On/Off/Reset).

  • oneview_create_profile: Create a server profile from a template.

  • oneview_delete_profile: Remove a server profile.

  • oneview_list_networks: List configured networks.

  • oneview_get_network_sets: Retrieve network set configurations.

  • oneview_list_storage: List storage systems and pools.

Troubleshooting

Docker Connectivity Issues

If you are having trouble connecting to the OneView appliance from the Docker container, make sure that the container is on the same network as the appliance. You can use the docker network command to manage Docker networks.

OneView Connectivity Issues

If you are having trouble connecting to the OneView appliance, make sure that the ONEVIEW_IP, ONEVIEW_USERNAME, and ONEVIEW_PASSWORD environment variables are set correctly. You can also try setting the ONEVIEW_VERIFY_SSL environment variable to false if you are using a self-signed certificate.

-
security - not tested
F
license - not found
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Enables AI agents to manage HPE OneView infrastructure through the REST API, including server hardware operations, power control, profile management, and network/storage configuration.

  1. Quick Start
    1. Environment Variable Configuration
      1. Security Considerations
        1. Credential Management
        2. Rate Limiting
      2. SSL Certificate Handling
        1. Docker Deployment Guide
          1. Building the Docker Image
          2. Running the Docker Container
        2. API Endpoint Reference
          1. Troubleshooting
            1. Docker Connectivity Issues
            2. OneView Connectivity Issues

          MCP directory API

          We provide all the information about MCP servers via our MCP API.

          curl -X GET 'https://glama.ai/api/mcp/v1/servers/Quazmoz/mcp'

          If you have feedback or need assistance with the MCP directory API, please join our Discord server