A Model Context Protocol (MCP) server that provides standardized access to OVH API services. This server enables AI assistants and applications to interact with OVH's cloud infrastructure through a unified, secure interface.
Author: Isaac Campos MesΓ©n Company: RunIT Solutions Repository: GitHub - runitsolutions/mcp-server-ovh
Status: π’ FULLY OPERATIONAL & TESTED
- β Build: TypeScript compilation successful
- β Runtime: Server starts without errors
- β Schema Validation: Input validation working correctly
- β MCP Integration: Compatible with MCP clients
- β
CommonJS: Uses
require()
for module loading - β TypeScript: Full type safety with proper declarations
- β API Endpoints Verified: All endpoints tested against OVH Console
- β Documentation Updated: README reflects verified endpoints
Last Verified: $(date) OVH Console: https://eu.api.ovh.com/console/
/me
- User information β/me/bill
- Billing information β/me/payment/method
- Payment methods β/service
- Services list β/services
- Services list (plural) β/dedicated/server
- Dedicated servers β/vps
- VPS instances β/me/order
- Orders β/me/api/application
- API applications β/cloud/project
- Cloud projects β/ip
- IP addresses β/ipLoadbalancing
- Load balancers β/dedicatedCloud
- Dedicated Cloud β/metrics
- Metrics β/license/windows
- Windows licenses β/dbaas/logs
- DBaaS Logs β/ssl
- SSL certificates β/vrack
- vRack β/veeamCloudConnect
- Veeam Cloud Connect β/nutanix
- Nutanix β
/me/services
- Requires specific API permissions/domain
- Requires domain management permissions/me/api/logs
- Requires audit log permissions/hosting/web
- Requires web hosting permissions/email/domain
- Requires email permissions/sms
- Requires SMS permissions
- π Secure Authentication: Support for both API key and OAuth2 authentication methods
- π οΈ Standardized Tools: Clean MCP tool interfaces for common OVH operations
- β Input Validation: Robust validation using Zod schemas
- π Modern API: Built with the latest MCP SDK following best practices
- π TypeScript: Full TypeScript support with strict type checking
- π§ͺ Well Tested: Comprehensive test suite with Jest
- π Well Documented: Complete documentation and examples
- Node.js 18.x or higher
- npm or yarn
- OVH API credentials (see Setup section)
npm install mcp-server-ovh
git clone https://github.com/runitsolutions/mcp-server-ovh.git
cd mcp-server-ovh
npm install
npm run build
You need to obtain API credentials from OVH. There are two authentication methods:
- Go to OVH Manager
- Navigate to API Keys section
- Create a new application key
- Note down your
App Key
,App Secret
, andConsumer Key
- Register your application in OVH's OAuth2 system
- Obtain your
Client ID
andClient Secret
Create a .env
file in your project root:
# For API Key authentication
OVH_ENDPOINT=ovh-eu
OVH_APP_KEY=your_app_key_here
OVH_APP_SECRET=your_app_secret_here
OVH_CONSUMER_KEY=your_consumer_key_here
# For OAuth2 authentication (alternative)
OVH_CLIENT_ID=your_client_id_here
OVH_CLIENT_SECRET=your_client_secret_here
The server communicates via stdio and can be used with any MCP-compatible client.
npm start
The server is designed to work with MCP-compatible clients like Claude Desktop or other AI assistants that support the Model Context Protocol.
Initialize the OVH API client with your credentials.
{
"name": "ovh_initialize_client",
"arguments": {
"endpoint": "ovh-eu",
"appKey": "your_app_key",
"appSecret": "your_app_secret",
"consumerKey": "your_consumer_key"
}
}
Initialize with OAuth2 credentials.
{
"name": "ovh_oauth2_initialize",
"arguments": {
"endpoint": "ovh-eu",
"clientID": "your_client_id",
"clientSecret": "your_client_secret"
}
}
Make a custom request to any OVH API endpoint.
{
"name": "ovh_request",
"arguments": {
"method": "GET",
"path": "/me",
"data": {} // Optional data for POST/PUT requests
}
}
Get information about the authenticated user.
{
"name": "ovh_get_user_info",
"arguments": {}
}
Retrieve billing information.
{
"name": "ovh_get_bills",
"arguments": {}
}
List all services associated with the account.
{
"name": "ovh_get_services",
"arguments": {}
}
Retrieve available payment methods for the account.
{
"name": "ovh_get_payment_methods",
"arguments": {}
}
List all orders placed with OVH.
{
"name": "ovh_get_orders",
"arguments": {}
}
List all cloud projects associated with the account.
{
"name": "ovh_get_cloud_projects",
"arguments": {}
}
List all dedicated servers in the account.
{
"name": "ovh_get_dedicated_servers",
"arguments": {}
}
List all VPS instances in the account.
{
"name": "ovh_get_vps",
"arguments": {}
}
List all IP addresses associated with the account.
{
"name": "ovh_get_ips",
"arguments": {}
}
Get vRack network information.
{
"name": "ovh_get_vrack",
"arguments": {}
}
List all load balancers in the account.
{
"name": "ovh_get_load_balancers",
"arguments": {}
}
List all SSL certificates.
{
"name": "ovh_get_ssl_certificates",
"arguments": {}
}
List all DBaaS Logs services.
{
"name": "ovh_get_dbaas_logs",
"arguments": {}
}
This MCP server can be integrated with various IDEs and editors that support the Model Context Protocol. Below are the instructions for popular IDEs.
Cursor supports MCP servers through the Model Context Protocol. You can add this OVH MCP server to your Cursor configuration.
Create a .cursor/mcp.json
file in your project root:
{
"mcpServers": {
"ovh-api": {
"command": "npx",
"args": ["mcp-server-ovh"],
"env": {
"OVH_ENDPOINT": "ovh-eu",
"OVH_APP_KEY": "your_app_key_here",
"OVH_APP_SECRET": "your_app_secret_here",
"OVH_CONSUMER_KEY": "your_consumer_key_here"
}
}
}
}
Create a ~/.cursor/mcp.json
file for system-wide access:
{
"mcpServers": {
"ovh-api": {
"command": "npx",
"args": ["mcp-server-ovh"],
"env": {
"OVH_ENDPOINT": "ovh-eu",
"OVH_APP_KEY": "your_app_key_here",
"OVH_APP_SECRET": "your_app_secret_here",
"OVH_CONSUMER_KEY": "your_consumer_key_here"
}
}
}
}
If you're using VS Code with an MCP extension:
- Install the MCP extension for VS Code
- Configure the server in your MCP settings:
{
"server": "ovh-api",
"command": "npx",
"args": ["mcp-server-ovh"],
"env": {
"OVH_ENDPOINT": "ovh-eu",
"OVH_APP_KEY": "your_app_key_here",
"OVH_APP_SECRET": "your_app_secret_here",
"OVH_CONSUMER_KEY": "your_consumer_key_here"
}
}
For other IDEs that support MCP:
- Ensure your IDE supports the Model Context Protocol
- Configure the server using the command:
npx mcp-server-ovh
- Set the required environment variables for OVH authentication
Before using the MCP server, you need to set up OVH API credentials:
# Set environment variables
export OVH_ENDPOINT="ovh-eu"
export OVH_APP_KEY="your_app_key"
export OVH_APP_SECRET="your_app_secret"
export OVH_CONSUMER_KEY="your_consumer_key"
Or create a .env
file in your project directory:
OVH_ENDPOINT=ovh-eu
OVH_APP_KEY=your_app_key_here
OVH_APP_SECRET=your_app_secret_here
OVH_CONSUMER_KEY=your_consumer_key_here
Once configured, you can use the OVH MCP server in your IDE by:
- Asking for OVH information: "What services do I have in OVH?"
- Checking account details: "Show my OVH account information"
- Billing inquiries: "What are my recent OVH bills?"
- Service management: "List all my OVH services"
The AI assistant will automatically use the available OVH tools when relevant to your questions.
src/
βββ index.ts # Main server implementation
βββ types/
β βββ ovh.d.ts # OVH API type definitions
βββ __tests__/ # Test files
βββ server.test.ts # Server functionality tests
βββ validation.test.ts # Input validation tests
# Install dependencies
npm install
# Build the project
npm run build
# Run in development mode (watch mode)
npm run dev
# Run linter
npm run lint
# Fix linting issues
npm run lint:fix
# Run tests (organized by type)
npm test # All tests
npm run test:unit # Unit tests
npm run test:integration # Integration tests
npm run test:e2e # End-to-end tests
# Specific tests
npm run test:endpoints # Verify OVH endpoints
npm run test:server # MCP server tests
npm run test:client # MCP client tests
npm run test:full # Complete integration tests
# Coverage and watch mode
npm run test:coverage # Tests with coverage report
npm run test:watch # Tests in watch mode
# Clean build artifacts
npm run clean
The test suite is organized in 4 levels:
- Zod schema validation
- MCP server functions
- Error handling
- Response parsing
- OVH API connectivity
- Endpoint verification (17/17 β )
- Client-server communication
- Authentication
- Complete initialization flow
- Full MCP communication
- Real tool calls
- Response handling
- Test configuration
- Common helpers
- Mock clients
# All organized tests
npm test # Complete suite
npm run test:unit # Unit tests only
npm run test:integration # Integration tests only
npm run test:e2e # End-to-end tests only
# Tests by specific functionality
npm run test:endpoints # Verify 17 OVH endpoints
npm run test:server # Server functionality
npm run test:client # MCP client
npm run test:full # Complete integration
# With coverage and watch
npm run test:coverage # Coverage report
npm run test:watch # Watch mode
This project follows strict code quality standards:
- ESLint: Configured with TypeScript rules
- Prettier: Code formatting (can be added if needed)
- Jest: Comprehensive test suite
- TypeScript: Strict mode enabled
- Pre-commit hooks: Quality checks before commits
The server provides access to OVH's REST API endpoints through both dedicated tools and generic requests:
/me
- User account information/me/bill
- Billing information/me/payment/method
- Payment methods/me/order
- Order history/me/api/application
- API applications/service
- Service listings/services
- Service listings (plural)/cloud/project
- Cloud projects/dedicated/server
- Dedicated servers/vps
- VPS instances/ip
- IP addresses/ipLoadbalancing
- Load balancers/dedicatedCloud
- Dedicated Cloud/metrics
- Metrics services/license/windows
- Windows licenses/dbaas/logs
- DBaaS Logs services/ssl
- SSL certificates/vrack
- vRack network/veeamCloudConnect
- Veeam Cloud Connect/nutanix
- Nutanix services
- Any OVH API endpoint via the
ovh_request
tool - Full OVH API compatibility through the console: https://eu.api.ovh.com/console/
/me/services
- Requires additional API permissions/domain
- Requires domain management permissions/hosting/web
- Requires web hosting permissions/email/domain
- Requires email permissions/sms
- Requires SMS permissions
The server provides clear error messages for:
- Authentication failures
- Invalid input validation
- API rate limits
- Network connectivity issues
- Invalid API responses
Be aware of OVH API rate limits. The server includes error handling for rate limit scenarios but doesn't implement automatic retry logic.
Contributions are welcome! Please follow these steps:
- Fork the repository
- Create a feature branch:
git checkout -b feature/amazing-feature
- Commit your changes:
git commit -m 'Add amazing feature'
- Push to the branch:
git push origin feature/amazing-feature
- Open a Pull Request
- Follow the existing code style
- Add tests for new features
- Update documentation as needed
- Ensure all tests pass before submitting PR
- Use conventional commit messages
- Never commit API credentials to version control
- Use environment variables for sensitive data
- The server validates all inputs to prevent injection attacks
- API keys are stored securely and not logged
This project is licensed under the MIT License - see the LICENSE file for details.
- π OVH API Documentation
- π Report Issues
- π¬ Discussions
- Model Context Protocol - The protocol this server implements
- OVH API - OVH's official API documentation
- MCP SDK - The SDK used to build this server
- GitHub Repository - Source code and issues
- Error: "OVH client not initialized"
- Solution: Ensure all required environment variables are set
- Check: Verify your API credentials are correct and have proper permissions
- Error: Network timeout or connection failed
- Solution: Check your internet connection and OVH endpoint configuration
- Check: Verify the OVH_ENDPOINT matches your account region
- Error: API access denied
- Solution: Ensure your API keys have the necessary permissions
- Check: Review OVH Manager API key permissions
Enable debug logging by setting the environment variable:
export DEBUG=mcp-server-ovh
View MCP server logs in your IDE:
- Open the Output panel (usually Ctrl+Shift+U)
- Select "MCP Logs" from the dropdown
- Check for connection errors, authentication issues, or server crashes
// In your MCP-compatible IDE
// Ask: "What OVH services do I have?"
// The AI will automatically use the ovh_get_services tool
// Ask: "Show my OVH account information"
// The AI will use the ovh_get_user_info tool
// Ask: "What are my recent OVH bills?"
// The AI will use the ovh_get_bills tool
// Custom API calls
// Ask: "Make a custom API call to /me/service/domain.example.com"
// The AI will use the ovh_request tool with appropriate parameters
- π Report Issues
- π¬ Discussions
- π OVH API Documentation
- π’ RunIT Solutions
This project is licensed under the MIT License - see the LICENSE file for details.
Built with β€οΈ by RunIT Solutions using the Model Context Protocol