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 分