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
7.2K

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

R
Rsdoctor
Rsdoctor is a build analysis tool specifically designed for the Rspack ecosystem, fully compatible with webpack. It provides visual build analysis, multi - dimensional performance diagnosis, and intelligent optimization suggestions to help developers improve build efficiency and engineering quality.
TypeScript
8.6K
5 points
N
Next Devtools MCP
The Next.js development tools MCP server provides Next.js development tools and utilities for AI programming assistants such as Claude and Cursor, including runtime diagnostics, development automation, and document access functions.
TypeScript
9.3K
5 points
T
Testkube
Testkube is a test orchestration and execution framework for cloud-native applications, providing a unified platform to define, run, and analyze tests. It supports existing testing tools and Kubernetes infrastructure.
Go
5.7K
5 points
M
MCP Windbg
An MCP server that integrates AI models with WinDbg/CDB for analyzing Windows crash dump files and remote debugging, supporting natural language interaction to execute debugging commands.
Python
10.6K
5 points
R
Runno
Runno is a collection of JavaScript toolkits for securely running code in multiple programming languages in environments such as browsers and Node.js. It achieves sandboxed execution through WebAssembly and WASI, supports languages such as Python, Ruby, JavaScript, SQLite, C/C++, and provides integration methods such as web components and MCP servers.
TypeScript
9.7K
5 points
N
Netdata
Netdata is an open-source real-time infrastructure monitoring platform that provides second-level metric collection, visualization, machine learning-driven anomaly detection, and automated alerts. It can achieve full-stack monitoring without complex configuration.
Go
10.3K
5 points
M
MCP Server
The Mapbox MCP Server is a model context protocol server implemented in Node.js, providing AI applications with access to Mapbox geospatial APIs, including functions such as geocoding, point - of - interest search, route planning, isochrone analysis, and static map generation.
TypeScript
8.2K
4 points
U
Uniprof
Uniprof is a tool that simplifies CPU performance analysis. It supports multiple programming languages and runtimes, does not require code modification or additional dependencies, and can perform one-click performance profiling and hotspot analysis through Docker containers or the host mode.
TypeScript
7.4K
4.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
19.3K
4.5 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
31.7K
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
22.4K
4.3 points
D
Duckduckgo MCP Server
Certified
The DuckDuckGo Search MCP Server provides web search and content scraping services for LLMs such as Claude.
Python
66.7K
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#
29.2K
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
61.0K
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
21.1K
4.5 points
M
Minimax MCP Server
The MiniMax Model Context Protocol (MCP) is an official server that supports interaction with powerful text-to-speech, video/image generation APIs, and is suitable for various client tools such as Claude Desktop and Cursor.
Python
45.3K
4.8 points
AIBase
Zhiqi Future, Your AI Solution Think Tank
© 2026AIBase