Mimer Mcp

io.github.mimersql由 GitHub 账号 mimersql 发布v1.0.5更新于 Oct 24, 2026

An MCP server with Mimer SQL Database Connectivity

已验证STDIO仅桌面数据库数据与分析

概览

AI 生成的概览

让助手连接 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 文件配置。
安装前请注意
需要以 DB_PASSWORD 提供数据库密码,应放在 .env 文件或密钥管理工具中,避免共享配置文件。execute_stored_procedure 工具会在数据库中执行存储过程,即使查询仅限 SELECT,也可能改动数据。请只授予 DB_USER 助手所需的最小权限。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Mimer Mcp,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

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 database
  • list_table_names — List table names within the specified schema
  • get_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 database
  • get_stored_procedure_definition — Get the definition of a stored procedure
  • get_stored_procedure_parameters — Get the parameters of a stored procedure
  • execute_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:

Environment VariableDefaultDescription
DB_DSNRequiredDatabase name to connect to
DB_USERRequiredDatabase username
DB_PASSWORDRequiredDatabase password
DB_HOST-Database host address (use host.docker.internal for Docker)
DB_PORT1360Database port number
DB_PROTOCOLtcpConnection protocol
DB_POOL_INITIAL_CON0Initial number of idle connections in the pool
DB_POOL_MAX_UNUSED0Maximum number of unused connections in the pool
DB_POOL_MAX_CON0Maximum number of connections allowed (0 = unlimited)
DB_POOL_BLOCKfalseDetermines behavior when exceeding the maximum number of connections. If true, block and wait for a connection to become available; if false, raise an error when maxconnections is exceeded
DB_POOL_DEEP_HEALTH_CHECKtrueIf true, validates connection health before getting from pool (slower but more reliable)
MCP_LOG_LEVELINFOLogging level for the MCP server. Options: DEBUG, INFO, WARNING, ERROR, CRITICAL

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.

  1. Create a .vscode/mcp.json file in your workspace.
  2. Add the following configuration to your .vscode/mcp.json file, depending on how you want to run the MCP server.

Option 1: Using Docker (Recommended)

Option 1.1: Build the Docker Image Locally
bash
docker build -t mimer-mcp-server .

Then, add the following configuration to .vscode/mcp.json file

json
{	"servers": {		"mimer-mcp-server": {			"command": "docker",			"args": [				"run",				"-i",				"--rm",				"--add-host=host.docker.internal:host-gateway",				"--env-file=/absolute/path/to/.env",				"mimer-mcp-server",			]		}	},	"inputs": []}
Option 1.2: Use the Pre-Built Image from Docker Hub
json
{    "servers": {        "mimer-mcp-server": {            "command": "docker",            "args": [                "run",                "-i",                "--rm",                "--add-host=host.docker.internal:host-gateway",                "--env-file=/absolute/path/to/.env",                "mimersql/mimer-mcp:latest"            ]        }    },    "inputs": []}

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.

{  "servers": {    "mimer-mcp-server": {      "command": "docker",      "args": [        "compose",        "run",        "--rm",        "-i",        "--no-TTY",        "mimer-mcp-server"      ]    }  },  "inputs": []}

Option 2.1: Using uvx

[Install in VS Code]

json
{	"servers": {		"mimer-mcp-server": {			"type": "stdio",			"command": "uvx",			"args": [				"mimer_mcp_server"			],			"env": {				"DOTENV_PATH": "/absolute/path/to/.env"			}		}	}}

Option 2.2: Using uv

json
{	"servers": {		"mimer-mcp-server": {			"type": "stdio",			"command": "uv",			"args": [				"run",				"--with",				"fastmcp",				"fastmcp",				"run",				"/path-to/server.py"			],    }  }}
  1. After saving the configuration file, VS Code will display a Start button in the mcp.json file. Click it to launch the server.
[Start button to start Mimer MCP Server]
  1. Open Copilot Chat and in the Copilot Chat box, select Agent mode from the dropdown.
[Copilot Chat Agent Mode]
  1. Select the Tools button to view the list of available tools. Make sure the tools from Mimer MCP Server are selected.
[Tool Button on Chat]
  1. 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)
[Prompt asking what kind of product is Anthology] [Agent answers with the gathered queries results]

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:
bash
# macOS / Linuxcurl -LsSf https://astral.sh/uv/install.sh | sh
# or via Homebrewbrew install uv

Verify installation:

bash
uv --version
Install Node.js and npm:
bash
# Linux (Ubuntu/Debian)sudo apt install nodejs npm
# macOS (via Homebrew)brew install node

Verify installation:

bash
node --versionnpm --version

Getting Started

  1. Clone the repository

  2. Create and activate a virtual environment

bash
uv venv
# macOS / Linuxsource .venv/bin/activate# Windows.venv\Scripts\activate
  1. Install dependencies from pyproject.toml
bash
uv sync
  1. Configure environment variables
bash
cp .env.example .env# Edit .env with your database credentials

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+):

bash
npx @modelcontextprotocol/inspector

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

bash
uv run fastmcp dev inspector src/mimer_mcp_server/server.py

To run the Mimer SQL docker image and mimer-mcp-server using Docker compose, run:

bash
MCP_TRANSPORT=http docker compose up

or to run it as a daemon:

bash
MCP_TRANSPORT=http docker compose up -d

This way it is possible to call the mimer-mcp-server using HTTP and port 3333.

来源:README.md,提交 d21a0c0

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v1.0.5最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分