Skip to main content

ORMCP Server

Make your relational data AI ready

ORMCP Server is a Model Context Protocol (MCP) server that enables AI assistants to interact with relational databases using intuitive, object-oriented operations in JSON format.

What is ORMCP Server?

ORMCP Server bridges the gap between AI applications and relational databases. It leverages the Gilhari microservice framework and JDX ORM to provide seamless database access through the standardized MCP protocol.

Instead of writing SQL, AI assistants like Claude and Gemini can work with your data using natural language and high-level object operations.

Key Features

  • 🌍 Database Agnostic - Works with any JDBC-compliant database (PostgreSQL, MySQL, Oracle, SQL Server, SQLite, etc.)
  • ✅ MCP Compliant - Fully compatible with the Model Context Protocol standard
  • 🔄 Object-Relational Mapping - JSON object operations transparently mapped to relational data
  • 🧾 Declarative ORM - Define mappings using simple JDX grammar
  • 🚀 High Performance - Optimized with connection pooling, caching, and minimal database trips
  • 🔒 Secure - Domain model-specific operations with optional read-only mode

Quick Start

Installation

pip install ormcp-server

If you have an existing Gemfury token from an earlier beta install, it will no longer work — Gemfury access has been discontinued. Use pip install ormcp-server above, which installs from public PyPI directly.

Accessing Full Package with SDK and Examples

The source distribution includes everything you need to get started beyond the installable package itself — a curated subset of the Gilhari SDK and a ready-to-use example microservice.

# Download source distribution from PyPI
pip download --no-binary :all: ormcp-server

# Extract it (use the appropriate version number)
tar -xzf ormcp_server-*.tar.gz
cd ormcp_server-*/

# Now you have access to:
# - Gilhari_SDK/          Gilhari SDK essentials (libs, config, docs)
#                         Note: JDX User Manual excluded due to size; available at
#                         https://www.softwaretree.com/v1/products/jdx/docs/JDX-5.0-Manual-v1.pdf
# - gilhari_example1/     Ready-to-use SQLite-backed example microservice
# - package/client/       Example MCP client code
# - package/docs/         Additional ORMCP documentation

Basic Usage

  1. Configure and start your Gilhari microservice (handles database connectivity)
  2. Configure ORMCP Server:
# Linux/macOS
export GILHARI_BASE_URL="http://localhost:80/gilhari/v1/"
export MCP_SERVER_NAME="MyORMCPServer"

# Windows (Command Prompt)
set GILHARI_BASE_URL=http://localhost:80/gilhari/v1/
set MCP_SERVER_NAME=MyORMCPServer

GILHARI_BASE_URL must use the port your Gilhari microservice listens on (for a Docker container, the host port shown by docker ps). It is the only Gilhari setting you need: ORMCP checks that a microservice answers there when it starts, and otherwise stops with a message naming the address it checked and what to do.

  1. Start the server:
ormcp-server
  1. Connect your AI client (e.g., Claude Desktop):
{
  "mcpServers": {
    "my-ormcp-server": {
      "command": "ormcp-server",
      "env": {
        "GILHARI_BASE_URL": "http://localhost:80/gilhari/v1/",
        "MCP_SERVER_NAME": "MyORMCPServer"
      }
    }
  }
}

How It Works

AI Assistant <--MCP--> ORMCP Server <--REST--> Gilhari Microservice <--JDBC--> Database
  1. User sends natural language request to AI assistant (e.g., Claude)
  2. AI assistant translates natural language into MCP tool calls
  3. ORMCP Server receives MCP tool calls and translates to REST API calls
  4. Gilhari microservice executes database operations via JDBC/SQL
  5. Results returned as JSON objects through the chain back to user

Example Interactions

Query data:

"Show me all users in California"
"What's the average age of users?"

Manage data:

"Create a new user named John Smith in Boston"
"Update all users in New York to have status=active"

Explore schema:

"What types of objects are available?"
"Show me the attributes of the User class"

Available MCP Tools

  • getObjectModelSummary - Discover classes and relationships
  • query - Retrieve objects with filtering and sorting
  • getObjectById - Fetch specific objects by primary key
  • access - Navigate object relationships
  • getAggregate - Calculate COUNT, SUM, AVG, MIN, MAX
  • insert - Create new objects
  • update - Update existing objects
  • update2 - Bulk-update existing objects
  • delete - Delete objects
  • delete2 - Bulk-delete existing objects

Read-only by default: READONLY_MODE defaults to true, so the insert/update/update2/delete/delete2 tools are not available unless you set READONLY_MODE=false.

Configuration

ORMCP Server is configured with environment variables. The most common ones:

Variable Purpose Default
GILHARI_BASE_URL Address of your Gilhari microservice http://localhost:80/gilhari/v1/
MCP_SERVER_NAME Server name shown to MCP clients ORMCPServerDemo
READONLY_MODE false to enable the data-modification tools true
LOG_LEVEL Logging verbosity INFO
ORMCP_LOG_FILE Log file in addition to the console; none for console only ormcp_server_debug.log in the system's temp directory

See the complete documentation for all settings, including HTTP mode.

Requirements

  • Python 3.12+
  • Docker (for Gilhari microservice)
  • JDBC driver for your database
  • MCP-compatible client (Claude Desktop, Gemini CLI, etc.)

Documentation

Beta Notice

ORMCP Server is currently in Beta for testing and evaluation purposes only. Not intended for commercial use.

Support

License

Proprietary software owned by Software Tree, LLC. See LICENSE for terms.

Beta Evaluation: Free for testing and evaluation for 30 days from the date of installation.

Commercial licensing: Use of ORMCP Server beyond the evaluation period is subject to then-applicable Software Tree licensing terms. For information or to express interest, contact Software Tree at ormcp_support@softwaretree.com or visit https://www.softwaretree.com.


Software Tree | Making databases AI-accessible

Metadata

Release files for ormcp-server 0.7.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ormcp-server 0.7.1
File Size Uploaded
ormcp_server-0.7.1.tar.gz 1.8 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for ormcp-server 0.7.1
File Interpreter ABI Platform
ormcp_server-0.7.1-py3-none-any.whl Python 3 none any Details

Total release size: 1.8 MB

Release files / ormcp_server-0.7.1.tar.gz

Download URL ormcp_server-0.7.1.tar.gz
Size 1.8 MB
Tags Source
SHA-256 checksum
How to use checksums
44ea9735e00d649dea7092c0ab21c9ade3010250021f854eba8d922d1710c118
BLAKE2b-256 checksum
How to use checksums
c097e8d69f5fae33cb5d42b4e6124d1813e8786361a50e306fdbb11656c4d14c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Release files / ormcp_server-0.7.1-py3-none-any.whl

Download URL ormcp_server-0.7.1-py3-none-any.whl
Size 39.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bf5cd3adeb60d7a15fa667aaea9d56b83a5bce9594eb3f9198051e178705c04b
BLAKE2b-256 checksum
How to use checksums
87b4cf06fafb2bdaaae1c0c89901a7eb3d89ee79cd1bc10a1e408f0634de0ce2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Release history Release notifications | RSS feed

This release

0.7.1 This release

2 release files

0.7.0

2 release files

0.6.9

2 release files

0.6.8

2 release files

0.6.7

2 release files

0.6.6

2 release files

0.6.5

2 release files

0.6.4

2 release files

0.6.3

2 release files

0.6.2

2 release files

0.6.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page