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.5K

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

C
Claude Context
Claude Context is an MCP plugin that provides in - depth context of the entire codebase for AI programming assistants through semantic code search. It supports multiple embedding models and vector databases to achieve efficient code retrieval.
TypeScript
8.4K
5 points
A
Acemcp
Acemcp is an MCP server for codebase indexing and semantic search, supporting automatic incremental indexing, multi-encoding file processing, .gitignore integration, and a Web management interface, helping developers quickly search for and understand code context.
Python
10.6K
5 points
B
Blueprint MCP
Blueprint MCP is a chart generation tool based on the Arcade ecosystem. It uses technologies such as Nano Banana Pro to automatically generate visual charts such as architecture diagrams and flowcharts by analyzing codebases and system architectures, helping developers understand complex systems.
Python
7.6K
4 points
M
MCP Agent Mail
MCP Agent Mail is a mail - based coordination layer designed for AI programming agents, providing identity management, message sending and receiving, file reservation, and search functions, supporting asynchronous collaboration and conflict avoidance among multiple agents.
Python
8.9K
5 points
M
MCP
The Microsoft official MCP server provides search and access functions for the latest Microsoft technical documentation for AI assistants
12.5K
5 points
A
Aderyn
Aderyn is an open - source Solidity smart contract static analysis tool written in Rust, which helps developers and security researchers discover vulnerabilities in Solidity code. It supports Foundry and Hardhat projects, can generate reports in multiple formats, and provides a VSCode extension.
Rust
10.1K
5 points
D
Devtools Debugger MCP
The Node.js Debugger MCP server provides complete debugging capabilities based on the Chrome DevTools protocol, including breakpoint setting, stepping execution, variable inspection, and expression evaluation.
TypeScript
9.2K
4 points
S
Scrapling
Scrapling is an adaptive web scraping library that can automatically learn website changes and re - locate elements. It supports multiple scraping methods and AI integration, providing high - performance parsing and a developer - friendly experience.
Python
12.3K
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
17.8K
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
28.3K
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
18.1K
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
55.8K
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#
25.1K
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
53.4K
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
37.7K
4.8 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
18.8K
4.5 points
AIBase
Zhiqi Future, Your AI Solution Think Tank
© 2025AIBase