hana mcp server
Enables integration between SAP HANA Cloud Database and Cursor IDE through the Model Context Protocol, providing standardized interfaces for managing ML models and execution contexts.
Enables integration between SAP HANA Cloud Database and Cursor IDE through the Model Context Protocol, providing standardized interfaces for managing ML models and execution contexts.
A Model Context Protocol (MCP) server implementation for SAP HANA Cloud DB integration with Cursor IDE.
This server implements the Model Context Protocol (MCP) pattern for machine learning operations with SAP HANA Cloud. The MCP server provides a standardized interface for managing ML models, execution contexts, and communication protocols between applications and the HANA Cloud database.
Key features: - Model Registry: Central repository for model metadata and versioning - Context Management: Configure execution environments for models - Protocol Adapters: Standardized communication between models and applications - HANA Cloud Integration: Optimized for SAP HANA Cloud Database - Cursor IDE Support: Seamless integration with Cursor IDE
The MCP server is built on a three-layer architecture:
┌───────────────────────────────────────────────────────┐
│ CLIENT APPLICATIONS │
└───────────────────────────▲───────────────────────────┘
│
│ REST API
│
┌───────────────────────────▼───────────────────────────┐
│ MCP SERVER │
│ │
│ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ │
│ │ MODEL API │ │ CONTEXT API │ │PROTOCOL API │ │
│ └──────┬──────┘ └──────┬──────┘ └──────┬──────┘ │
│ │ │ │ │
│ ┌──────▼──────┐ ┌──────▼──────┐ ┌──────▼──────┐ │
│ │ MODEL │ │ CONTEXT │ │ PROTOCOL │ │
│ │ MANAGER │ │ MANAGER │ │ MANAGER │ │
│ └──────┬──────┘ └──────┬──────┘ └──────┬──────┘ │
│ │ │ │ │
└─────────┼──────────────────┼──────────────────┼────────┘
│ │ │
┌─────────▼──────────────────▼──────────────────▼────────┐
│ HANA CLOUD DB │
└───────────────────────────────────────────────────────┘
Clone the repository:
git clone https://github.com/yourusername/hana-mcp-server.git
cd hana-mcp-server
Create a virtual environment and install dependencies:
python -m venv venv
source venv/bin/activate # On Windows: venvScriptsactivate
pip install -r requirements.txt
Run the setup script:
python setup.py
Follow the prompts to configure your HANA Cloud connection and server settings.
The server uses environment variables for configuration. These can be set in a .env
file:
```
HANA_HOST=your-hana-host.hanacloud.ondemand.com HANA_PORT=443 HANA_USER=DBADMIN HANA_PASSWORD=