io.github.mimersql/mimer-mcp

平台与服务

by mimersql

基于Mimer Database Connectivity的MCP服务器,提供与Mimer数据库的连接能力。

什么是 io.github.mimersql/mimer-mcp

基于Mimer Database Connectivity的MCP服务器,提供与Mimer数据库的连接能力。

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.

<!-- mcp-name: io.github.mimersql/mimer-mcp -->

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.

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

Option 2: Using uv

Install in VS Code

json
{
	"servers": {
		"mimer-mcp-server": {
			"type": "stdio",
			"command": "uvx",
			"args": [
				"mimer_mcp_server"
			],
			"env": {
				"DOTENV_PATH": "/absolute/path/to/.env"
			}
		}
	}
}
  1. After saving the configuration file, VS Code will display a Start button in the mcp.json file. Click it to launch the server.
<img src="docs/images/start-mcp-server.png" alt="Start button to start Mimer MCP Server" width=400>
  1. Open Copilot Chat and in the Copilot Chat box, select Agent mode from the dropdown.
<img src="docs/images/copilot-agent-mode.png" alt="Copilot Chat Agent Mode" width=400>
  1. Select the Tools button to view the list of available tools. Make sure the tools from Mimer MCP Server are selected.
<img src="docs/images/mimer-mcp-tools.png" alt="Tool Button on Chat" width=490%>
  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)
<img src="docs/images/prompt-anthology.png" alt="Prompt asking what kind of product is Anthology" width=90%> <img src="docs/images/agent-answer.png" alt="Agent answers with the gathered queries results" width=90%>

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 / Linux
curl -LsSf https://astral.sh/uv/install.sh | sh

# or via Homebrew
brew 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 --version
npm --version

Getting Started

  1. Clone the repository

  2. Create and activate a virtual environment

bash
uv venv

# macOS / Linux
source .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 /absolute/path/to/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.

常见问题

io.github.mimersql/mimer-mcp 是什么?

基于Mimer Database Connectivity的MCP服务器,提供与Mimer数据库的连接能力。

相关 Skills

MCP构建

by anthropics

Universal
热门

聚焦高质量 MCP Server 开发,覆盖协议研究、工具设计、错误处理与传输选型,适合用 FastMCP 或 MCP SDK 对接外部 API、封装服务能力。

想让 LLM 稳定调用外部 API,就用 MCP构建:从 Python 到 Node 都有成熟指引,帮你更快做出高质量 MCP 服务器。

平台与服务
未扫描114.1k

Slack动图

by anthropics

Universal
热门

面向Slack的动图制作Skill,内置emoji/消息GIF的尺寸、帧率和色彩约束、校验与优化流程,适合把创意或上传图片快速做成可直接发送的Slack动画。

帮你快速做出适配 Slack 的动图,内置约束规则和校验工具,少踩上传与播放坑,做表情包和演示都更省心。

平台与服务
未扫描114.1k

MCP服务构建器

by alirezarezvani

Universal
热门

从 OpenAPI 一键生成 Python/TypeScript MCP server 脚手架,并校验 tool schema、命名规范与版本兼容性,适合把现有 REST API 快速发布成可生产演进的 MCP 服务。

帮你快速搭建 MCP 服务与后端 API,脚手架完善、扩展顺手,尤其适合想高效验证服务能力的开发者。

平台与服务
未扫描10.2k

相关 MCP Server

Slack 消息

编辑精选

by Anthropic

热门

Slack 是让 AI 助手直接读写你的 Slack 频道和消息的 MCP 服务器。

这个服务器解决了团队协作中需要 AI 实时获取 Slack 信息的痛点,特别适合开发团队让 Claude 帮忙汇总频道讨论或发送通知。不过,它目前只是参考实现,文档有限,不建议在生产环境直接使用——更适合开发者学习 MCP 如何集成第三方服务。

平台与服务
83.4k

by netdata

热门

io.github.netdata/mcp-server 是让 AI 助手实时监控服务器指标和日志的 MCP 服务器。

这个工具解决了运维人员需要手动检查系统状态的痛点,最适合 DevOps 团队让 Claude 自动分析性能数据。不过,它依赖 NetData 的现有部署,如果你没用过这个监控平台,得先花时间配置。

平台与服务
78.4k

by d4vinci

热门

Scrapling MCP Server 是专为现代网页设计的智能爬虫工具,支持绕过 Cloudflare 等反爬机制。

这个工具解决了爬取动态网页和反爬网站时的头疼问题,特别适合需要批量采集电商价格或新闻数据的开发者。不过,它依赖外部浏览器引擎,资源消耗较大,不适合轻量级任务。

平台与服务
35.4k

评论