Ormcp Docs
O

Ormcp Docs

The ORMCP Server is a server based on the Model Context Protocol (MCP) that connects AI applications to any relational database. It enables two-way communication between JSON data and the database through Object Relational Mapping (ORM).
2 points
8.6K

What is the ORMCP Server?

The ORMCP Server is a server based on the Model Context Protocol (MCP) standard, specifically designed to connect AI applications and relational databases. It acts as a bridge between AI models and databases. Through Object Relational Mapping (ORM) technology, it transparently converts JSON object operations generated by AI into SQL operations in the database, and vice versa.

How to use the ORMCP Server?

Using the ORMCP Server only requires three simple steps: 1) Define your data model and ORM mapping specifications; 2) Build and run the Gilhari microservice; 3) Configure and start the ORMCP Server, and then interact with the database in natural language through an AI client (such as Claude Desktop).

Use cases

The ORMCP Server is particularly suitable for the following scenarios: When you need to allow AI assistants to access the company's database for data query and analysis; When you want to quickly integrate an existing database system into an AI workflow; When you need to provide a unified AI access interface for different databases (PostgreSQL, MySQL, Oracle, etc.); When you want to query the database in natural language instead of SQL.

Main features

Standardized MCP interface
Fully compliant with the Model Context Protocol (MCP) specification, it can be seamlessly integrated with any MCP-compatible AI client (such as Claude Desktop, Gemini CLI, etc.).
Database independence
Supports all JDBC-compatible databases, including PostgreSQL, MySQL, Oracle, SQL Server, DB2, SQLite, etc. There is no need to write different code for different databases.
Two-way data flow
Supports full CRUD (Create, Read, Update, Delete) operations. AI can read data from the database and write data to the database (read-only mode is optional).
Object Relational Mapping
Automatically maps JSON object operations to relational database table operations, supporting complex relationships (one-to-one, one-to-many, many-to-many) and path expressions.
Flexible query capabilities
Supports deep and shallow queries, providing GraphQL-like operating instructions, which can precisely control the shape and scope of the returned data.
High-performance optimization
Built-in connection pool, pre-compiled statements, optimized SQL generation, minimized database access times, and metadata caching ensure efficient data access.
Declarative ORM specification
Use a simple JDX syntax to define object-relational mapping. There is no need to modify the existing database structure, and seamless integration with the existing database is supported.
Secure data access
Supports read-only mode to restrict the AI's modification rights to the database; Fine-grained operation control based on the domain model to protect sensitive data.
Advantages
Standardized interface: Based on the MCP protocol, it has good compatibility with mainstream AI clients
Database independence: One set of code supports multiple databases, reducing integration complexity
High development efficiency: Access the database in natural language instead of SQL, reducing the technical threshold
Performance optimization: Built-in multiple performance optimization mechanisms, performs well when processing large amounts of data
Controllable security: Supports read-only mode to restrict the AI's modification rights to the database
Friendly to existing systems: Can be integrated without modifying the existing database structure
Limitations
Beta version: Currently in the testing phase, there may be unknown issues, not recommended for production environments
Depends on Gilhari: Requires additional deployment of the Gilhari microservice, increasing system complexity
Learning curve: Need to understand the ORM mapping specifications and JDX syntax
Performance overhead: There is a certain performance overhead compared to direct SQL access
Complex configuration: Complete deployment involves multiple components and environment configurations

How to use

Install the ORMCP Server
First, you need to install the ORMCP Server software package. Beta users need to install it from the Gemfury private repository, and production users can install it from PyPI. It is recommended to use a virtual environment to avoid dependency conflicts.
Set up the Gilhari microservice
The ORMCP Server depends on the Gilhari microservice to communicate with the database. You need to deploy the Gilhari microservice first. You can use the official example or create a custom microservice.
Configure environment variables
Set the necessary environment variables, including the URL of the Gilhari service and the server name. These configurations determine how the ORMCP Server connects to the Gilhari microservice.
Start the ORMCP Server
Start the ORMCP Server. It will automatically connect to the configured Gilhari microservice and wait for the connection of the MCP client in STDIO mode.
Configure the AI client
Configure the ORMCP Server connection in the AI client (such as Claude Desktop). You need to specify the server command, parameters, and environment variables.
Start using
After the configuration is completed, restart the AI client. Now you can interact with the database in natural language. The AI will automatically convert your query into the corresponding MCP tool call.

Usage examples

Data query example
Query user information in the database in natural language, and the AI will automatically convert it into the corresponding filtered query.
Data insertion example
Add new records to the database in natural language, and the AI will automatically build the corresponding JSON object and perform the insertion operation.
Data statistics example
Request data statistics information in natural language, and the AI will automatically call aggregate functions to calculate the required indicators.
Data update example
Update records in the database in natural language, and the AI will automatically identify the objects and fields to be updated.

Frequently Asked Questions

Is the ORMCP Server free?
Do I need to modify the existing database structure?
Which databases are supported?
How to ensure data security?
What should I do if I encounter a 'command not found' error during installation?
Can the Beta version be used in a production environment?
Which AI clients are supported?
How is the performance? Can it handle large amounts of data?

Related resources

Official documentation
Complete ORMCP Server documentation, including installation guides, configuration instructions, API references, etc.
Example project
An example project for the Gilhari microservice, including complete configuration and demonstrations.
MCP protocol official website
The official website of the Model Context Protocol, learn about the details of the MCP standard.
Software Tree official website
The official website of the ORMCP Server development company, get the latest product information and commercial authorization.
Problem feedback
Submit bug reports, feature suggestions, or usage issues.
Technical support email
Contact the technical support team directly for help.
Gilhari documentation
Detailed documentation and SDK download for the Gilhari microservice framework.
Beta access application
Apply for access to the ORMCP Server Beta test.

Installation

Copy the following command to your Client for configuration
{
  "mcpServers": {
    "my-ormcp-server": {
      "command": "ormcp-server",
      "args": [],
      "env": {
        "GILHARI_BASE_URL": "http://localhost:80/gilhari/v1/",
        "MCP_SERVER_NAME": "MyORMCPServer"
      }
    }
  }
}

{
  "mcpServers": {
    "my-ormcp-server": {
      "command": "C:\\Users\\<YourUsername>\\AppData\\Roaming\\Python\\Python313\\Scripts\\ormcp-server.exe",
      "args": [],
      "env": {
        "GILHARI_BASE_URL": "http://localhost:80/gilhari/v1/",
        "MCP_SERVER_NAME": "MyORMCPServer"
      }
    }
  }
}

{
  "mcpServers": {
    "my-ormcp-server": {
      "command": "python", 
      "args": [
        "-m",
        "ormcp_server"
      ],
      "env": {
        "GILHARI_BASE_URL": "http://localhost:80/gilhari/v1/",
        "MCP_SERVER_NAME": "MyORMCPServer"
      }
    }
  }
}

{
  "mcpServers": {
    "ORMCPServerDemo": {
      "command": "uv",
      "args": [
        "run",
        "--with",
        "fastmcp",
        "fastmcp",
        "run",
        "<path_to_your_ormcp-server-project>/src/ormcp_server.py"
      ],
      "env": {
        "GILHARI_BASE_URL": "http://localhost:80/gilhari/v1/",
        "MCP_SERVER_NAME": "MyORMCPServer"
      }
    }
  }
}

{
  "mcpServers": {
    "my-ormcp-server-http": {
      "command": "ormcp-server",
      "args": [
        "--mode", "http",
        "--port", "8080"
      ],
      "env": {
        "GILHARI_BASE_URL": "http://localhost:80/gilhari/v1/",
        "MCP_SERVER_NAME": "MyORMCPServerHTTP"
      }
    }
  }
}

{
  "mcpServers": {
    "my-ormcp-server-http": {
      "httpUrl": "http://127.0.0.1:8080/mcp"
    }
  }
}
Note: Your key is sensitive information, do not share it with anyone.

Alternatives

V
Vestige
Vestige is an AI memory engine based on cognitive science. By implementing 29 neuroscience modules such as prediction error gating, FSRS - 6 spaced repetition, and memory dreaming, it provides long - term memory capabilities for AI. It includes a 3D visualization dashboard and 21 MCP tools, runs completely locally, and does not require the cloud.
Rust
9.5K
4.5 points
M
Moltbrain
MoltBrain is a long-term memory layer plugin designed for OpenClaw, MoltBook, and Claude Code, capable of automatically learning and recalling project context, providing intelligent search, observation recording, analysis statistics, and persistent storage functions.
TypeScript
10.1K
4.5 points
B
Bm.md
A feature-rich Markdown typesetting tool that supports multiple style themes and platform adaptation, providing real-time editing preview, image export, and API integration capabilities
TypeScript
14.8K
5 points
S
Security Detections MCP
Security Detections MCP is a server based on the Model Context Protocol that allows LLMs to query a unified security detection rule database covering Sigma, Splunk ESCU, Elastic, and KQL formats. The latest version 3.0 is upgraded to an autonomous detection engineering platform that can automatically extract TTPs from threat intelligence, analyze coverage gaps, generate SIEM-native format detection rules, run tests, and verify. The project includes over 71 tools, 11 pre-built workflow prompts, and a knowledge graph system, supporting multiple SIEM platforms.
TypeScript
6.7K
4 points
P
Paperbanana
Python
8.9K
5 points
B
Better Icons
An MCP server and CLI tool that provides search and retrieval of over 200,000 icons, supports more than 150 icon libraries, and helps AI assistants and developers quickly obtain and use icons.
TypeScript
8.7K
4.5 points
A
Assistant Ui
assistant - ui is an open - source TypeScript/React library for quickly building production - grade AI chat interfaces, providing composable UI components, streaming responses, accessibility, etc., and supporting multiple AI backends and models.
TypeScript
10.0K
5 points
A
Apify MCP Server
The Apify MCP Server is a tool based on the Model Context Protocol (MCP) that allows AI assistants to extract data from websites such as social media, search engines, and e-commerce through thousands of ready-to-use crawlers, scrapers, and automation tools (Apify Actors). It supports OAuth and Skyfire proxy payment and can be integrated into MCP clients such as Claude and VS Code through HTTPS endpoints or local stdio.
TypeScript
9.8K
5 points
N
Notion Api MCP
Certified
A Python-based MCP Server that provides advanced to-do list management and content organization functions through the Notion API, enabling seamless integration between AI models and Notion.
Python
24.8K
4.5 points
D
Duckduckgo MCP Server
Certified
The DuckDuckGo Search MCP Server provides web search and content scraping services for LLMs such as Claude.
Python
81.5K
4.3 points
M
Markdownify MCP
Markdownify is a multi-functional file conversion service that supports converting multiple formats such as PDFs, images, audio, and web page content into Markdown format.
TypeScript
38.1K
5 points
G
Gitlab MCP Server
Certified
The GitLab MCP server is a project based on the Model Context Protocol that provides a comprehensive toolset for interacting with GitLab accounts, including code review, merge request management, CI/CD configuration, and other functions.
TypeScript
27.4K
4.3 points
U
Unity
Certified
UnityMCP is a Unity editor plugin that implements the Model Context Protocol (MCP), providing seamless integration between Unity and AI assistants, including real - time state monitoring, remote command execution, and log functions.
C#
38.4K
5 points
F
Figma Context MCP
Framelink Figma MCP Server is a server that provides access to Figma design data for AI programming tools (such as Cursor). By simplifying the Figma API response, it helps AI more accurately achieve one - click conversion from design to code.
TypeScript
69.6K
4.5 points
G
Gmail MCP Server
A Gmail automatic authentication MCP server designed for Claude Desktop, supporting Gmail management through natural language interaction, including complete functions such as sending emails, label management, and batch operations.
TypeScript
24.0K
4.5 points
C
Context7
Context7 MCP is a service that provides real-time, version-specific documentation and code examples for AI programming assistants. It is directly integrated into prompts through the Model Context Protocol to solve the problem of LLMs using outdated information.
TypeScript
107.3K
4.7 points
AIBase
Zhiqi Future, Your AI Solution Think Tank
© 2026AIBase