Redfish MCP Server
Enables AI agents and LLMs to control and monitor Redfish-enabled hardware through power operations, system inventory, event logs, health monitoring, sensor readings, and user account management.
README
Redfish MCP Server
A Model Context Protocol (MCP) server that enables AI agents and LLMs to control Redfish-enabled hardware and simulators through a secure API. Built with FastMCP for enhanced development experience and structured output.
Features
This MCP server provides tools for:
- Power Operations: Control system power states (On, Off, Restart, etc.)
- System Inventory: Get detailed hardware information and specifications
- Event Logs: Retrieve and manage system event logs (System, Security, Manager)
- Health Monitoring: Monitor system health, status, and sensor readings
- User Account Management: Manage BMC user accounts and permissions
- Sensor Monitoring: Read temperature, fan, power, and voltage sensors
- Configuration Management: Check connection status and auto-configure from environment
Architecture
- FastMCP Framework: Built with FastMCP for better development experience
- Structured Output: Uses Pydantic models for type-safe, structured responses
- Environment Configuration: Auto-configures from environment variables
- Secure Authentication: Username/password authentication with configurable SSL
- Development Tools: Compatible with
mcp devmode and MCP inspector
Security
All communications with Redfish endpoints are authenticated using username/password credentials. SSL verification can be configured (disabled by default for self-signed certificates common in BMCs).
Installation
This project uses uv for dependency management:
# Install development dependencies
uv sync
Usage
Environment Variable Configuration (Recommended)
The simplest way to configure the Redfish MCP server is using environment variables. The server will automatically connect on startup if these are provided:
export REDFISH_HOST="https://192.168.1.100"
export REDFISH_USERNAME="admin"
export REDFISH_PASSWORD="password123"
export REDFISH_VERIFY_SSL="false" # Optional, defaults to false
export REDFISH_TIMEOUT="30" # Optional, defaults to 30 seconds
MCP Client Configuration
Configure the server in your MCP client with environment variables:
Claude Desktop
Add to ~/.config/claude-desktop/claude_desktop_config.json:
{
"mcpServers": {
"redfish": {
"command": "uv",
"args": ["run", "redfish-mcp-server"],
"cwd": "/path/to/your/redfish-mcp-server",
"env": {
"REDFISH_HOST": "https://192.168.1.100",
"REDFISH_USERNAME": "admin",
"REDFISH_PASSWORD": "password123",
"REDFISH_VERIFY_SSL": "false"
}
}
}
}
LM Studio
Add to your LM Studio configuration (mcp.json):
{
"mcpServers": {
"redfish": {
"command": "uv",
"args": [
"--directory",
"C:\\Users\\MyUser\\repos\\redfish-mcp-server",
"run",
"mcp",
"run",
"main.py"
],
"env": {
"REDFISH_HOST": "http://localhost:8000",
"REDFISH_USERNAME": "admin",
"REDFISH_PASSWORD": "password123"
}
}
}
}
If developing under Windows with WSL2 where the server is running in WSL, you may need to set the REDFISH_HOST to the WSL IP address or use localhost if accessing from Windows:
{
"mcpServers": {
"redfish": {
"command": "bash",
"args": [
"-c",
"REDFISH_HOST=http://localhost:8000 REDFISH_USERNAME=admin REDFISH_PASSWORD=password123 /home/carlosedp/.local/bin/uv --directory /home/carlosedp/repos/redfish-mcp-server run mcp run main.py"
]
}
}
}
Manual Configuration
If you prefer not to use environment variables, you can use the tools to configure the connection:
-
Use the
redfish_get_config_statustool to check current configuration status -
Use the
redfish_configuretool to set up connection parameters manually:- Host URL (e.g.,
https://192.168.1.100) - Username and password for BMC authentication
- SSL verification settings
- Host URL (e.g.,
-
Use the available tools to interact with your Redfish-enabled hardware:
Available Tools
redfish_get_config_status- Check current configuration status and connectionredfish_configure- Configure connection to Redfish endpoint (if not using env vars)redfish_get_system_info- Get system information and inventoryredfish_power_control- Control system power stateredfish_get_event_logs- Retrieve system event logsredfish_get_health_status- Get system health and statusredfish_manage_users- Manage user accountsredfish_get_sensors- Get sensor readingsredfish_clear_logs- Clear system event logs
Example Usage
# Check current configuration status
await redfish_get_config_status({})
# If not configured via environment variables, configure manually
await redfish_configure({
"host": "https://192.168.1.100",
"username": "admin",
"password": "password123",
"verify_ssl": false
})
# Get system information
await redfish_get_system_info({})
# Power on the system
await redfish_power_control({
"action": "On"
})
# Check system health
await redfish_get_health_status({})
Development
FastMCP Development Features
This server is built with FastMCP, providing enhanced development experience:
- Development Mode: Use
mcp devfor hot reloading during development - MCP Inspector: Compatible with MCP inspector for debugging and testing
- Structured Output: All responses use Pydantic models for type safety
- Auto-generated Schemas: Tools automatically generate JSON schemas from type hints
Running the Server for Development
# Set environment variables for automatic configuration
export REDFISH_HOST="https://192.168.1.100"
export REDFISH_USERNAME="admin"
export REDFISH_PASSWORD="password123"
export REDFISH_VERIFY_SSL="false"
# Run in development mode with the inspector
uv run mcp dev main.py
The server requires a Redfish hardware or simulator to connect to. Ensure the Redfish endpoint is accessible and the credentials are correct.
You can use Redfish-Mockup-Server for testing with simulated Redfish endpoints. Get the mockup data from the DMTF Redfish Mockup bundle.
Unpack them, install dependencies and run the mockup server:
# Create a venv and install dependencies
python -m venv venv
source venv/bin/activate # On Windows use `venv\Scripts\activate`
pip install -r requirements.txt
# Run the mockup server
python redfishMockupServer.py --short-form -D public-rackmount1`
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。