
Mimer Mcp
io.github.mimersql由 GitHub 账号 mimersql 发布v1.0.5更新于 Oct 24, 2026
An MCP server with Mimer SQL Database Connectivity
概览
让助手连接 Mimer SQL 数据库,浏览模式、执行只读 SELECT 查询,并查看或执行存储过程。
- 可以做什么
- 提供列出模式和表名、获取表结构及示例行、执行带参数的 SQL 查询(仅允许 SELECT 语句)等工具。还可列出只读存储过程、获取其定义与参数,并用 JSON 参数执行存储过程。连接池选项可控制数据库连接的创建与复用数量。
- 适用场景
- 适合助手需要探索或查询 Mimer SQL 数据库的场景,例如了解表结构、查看示例数据或调用已有存储过程。它偏向只读分析,而非通用数据库管理。
- 运行要求
- 以本地 Python 包(Python 3.10+ 及 uv)或 Docker 方式运行,需要可访问的 Mimer SQL 11.0 或更高版本实例。必须提供 DB_DSN、DB_USER 和 DB_PASSWORD,可选 DB_HOST、DB_PORT、DB_PROTOCOL、连接池设置和 MCP_LOG_LEVEL,通常通过 .env 文件配置。
安装
在 SourceWeft 中
- 打开 控制台中的 Mimer Mcp,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
Mimer MCP Server
A Model Context Protocol (MCP) server that provides Mimer SQL database connectivity to browse database schemas, execute read-only queries with parameterization support, and manage stored procedures.
Available Tools
Database Schema Tools
list_schemas— List all available schemas in the databaselist_table_names— List table names within the specified schemaget_table_info— Get detailed table schema and sample rows
Query Execution Tools
execute_query— Execute SQL query with parameter support (Only SELECT queries are allowed)
Stored Procedure Tools
list_stored_procedures— List read-only stored procedures in the databaseget_stored_procedure_definition— Get the definition of a stored procedureget_stored_procedure_parameters— Get the parameters of a stored procedureexecute_stored_procedure— Execute a stored procedure in the database with JSON parameters
Getting Started
Prerequisites
- Python 3.10 or later (with uv installed) or Docker
- Mimer SQL 11.0 or later
Environment Configuration
Before running the server, you need to configure your database connection settings using environment variables. The Mimer MCP Server reads these from a .env file.
Mimer MCP Server can be configured using environment variables through .env file with the following configuration option:
Usage with VS Code
MCP servers are configured using a JSON file (mcp.json). Different MCP hosts may have slightly different configuration formats. In this guide, we'll focus on VS Code as an example. First, ensure you've installed the latest version of VS Code and have access to Copilot.
One way to add MCP server in VS Code is to add the server configuration to your workspace in the .vscode/mcp.json file. This will allow you to share configuration with others.
- Create a
.vscode/mcp.jsonfile in your workspace. - Add the following configuration to your
.vscode/mcp.jsonfile, depending on how you want to run the MCP server.
Option 1: Using Docker (Recommended)
Option 1.1: Build the Docker Image Locally
Then, add the following configuration to .vscode/mcp.json file
Option 1.2: Use the Pre-Built Image from Docker Hub
Option 1.3: Use Docker compose and the official Mimer SQL docker container
This will start a Mimer SQL Docker container as well as the mimer-mcp-server container,
set up a private network between the two containers and create the Mimer SQL example database.
The Mimer SQL database will be stored in the docker volume called mimer_mcp_data so that database changes are persistent.
Option 2.1: Using uvx
Option 2.2: Using uv
- After saving the configuration file, VS Code will display a Start button in the
mcp.jsonfile. Click it to launch the server.
- Open Copilot Chat and in the Copilot Chat box, select Agent mode from the dropdown.
- Select the Tools button to view the list of available tools. Make sure the tools from Mimer MCP Server are selected.
- Enter a prompt in the chat input box and notice how the agent autonomously selects a suitable tool, fix errors and generate a final answer from gathered queries results. (Following examples use the Example Database from Mimer, which is owned by MIMER_STORE. Read more about this database: here)
Development
Prerequisites
- Python: 3.10+
- uv: for dependency management and running the server
- Mimer SQL 11.0 or later
- Node.js and npm: for debugging with MCP inspector
Install uv:
Verify installation:
Install Node.js and npm:
Verify installation:
Getting Started
-
Clone the repository
-
Create and activate a virtual environment
- Install dependencies from pyproject.toml
- Configure environment variables
The configuration is loaded automatically via config.py.
Debug with MCP inspector
MCP Inspector provides a web interface for testing and debugging MCP Tools (Requires Node.js: 22.7.5+):
Note: MCP Inspector is a Node.js app and the npx command allows running MCP Inspector without having to permanently install it as a Node.js package.
Alternatively, you can use FastMCP CLI to start the MCP inspector
To run the Mimer SQL docker image and mimer-mcp-server using Docker compose, run:
or to run it as a daemon:
This way it is possible to call the mimer-mcp-server using HTTP and port 3333.
来源:README.md,提交 d21a0c0
工具
0版本历史
1- v1.0.5最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分