Supabase
MCP server for interacting with the Supabase platform
제작자가 쓴 설명(영어 원문)
Read-only MySQL access, with the database and server switchable mid-conversation.
이 세 가지는 절대 하나의 점수로 합치지 않아요. 의견, 측정, 인기는 서로 다른 것이니까요.
이 서버는 아직 쉬운 말로 된 요약을 쓰지 못했어요. 아래는 레지스트리에서 읽어 온 사실이에요.
쓰고 있는 AI 앱을 고른 다음 설정을 복사하세요.
MYSQL_HOST, MYSQL_PORT, MYSQL_USER, MYSQL_PASSWORD, MYSQL_DATABASE, MYSQL_PROFILES, MYSQL_DEFAULT_PROFILE, MYSQL_CONNECT_TIMEOUT_MS, MYSQL_QUERY_TIMEOUT_MS비밀로 표시된 값은 내 계정의 열쇠예요. 절대 다른 사람과 공유하거나 채팅에 붙여 넣지 마세요.
필요한 것
어떤 앱을 쓰세요?
위에서 앱을 고르세요. 기억해 두었다가 다음부터는 버튼에 “…에 설치”라고 표시해요.
Claude Desktop → Settings → Developer → Edit Config를 열고 claude_desktop_config.json에 이 내용을 붙여 넣으세요
{
"mcpServers": {
"mysql-read-only": {
"command": "npx",
"args": [
"-y",
"@shibbirweb/mcp-mysql-read-only"
],
"env": {
"MYSQL_HOST": "your-value",
"MYSQL_PORT": "your-value",
"MYSQL_USER": "your-value",
"MYSQL_PASSWORD": "your-value",
"MYSQL_DATABASE": "your-value",
"MYSQL_PROFILES": "your-value",
"MYSQL_DEFAULT_PROFILE": "your-value",
"MYSQL_CONNECT_TIMEOUT_MS": "your-value",
"MYSQL_QUERY_TIMEOUT_MS": "your-value"
}
}
}
}터미널에서 이 명령어를 실행하세요
claude mcp add mysql-read-only --env MYSQL_HOST=your-value --env MYSQL_PORT=your-value --env MYSQL_USER=your-value --env MYSQL_PASSWORD=your-value --env MYSQL_DATABASE=your-value --env MYSQL_PROFILES=your-value --env MYSQL_DEFAULT_PROFILE=your-value --env MYSQL_CONNECT_TIMEOUT_MS=your-value --env MYSQL_QUERY_TIMEOUT_MS=your-value -- npx -y @shibbirweb/mcp-mysql-read-only실행하기 전에 빈 값을 채워 주세요.
프로젝트의 .cursor/mcp.json 또는 ~/.cursor/mcp.json에 붙여 넣으세요
{
"mcpServers": {
"mysql-read-only": {
"command": "npx",
"args": [
"-y",
"@shibbirweb/mcp-mysql-read-only"
],
"env": {
"MYSQL_HOST": "your-value",
"MYSQL_PORT": "your-value",
"MYSQL_USER": "your-value",
"MYSQL_PASSWORD": "your-value",
"MYSQL_DATABASE": "your-value",
"MYSQL_PROFILES": "your-value",
"MYSQL_DEFAULT_PROFILE": "your-value",
"MYSQL_CONNECT_TIMEOUT_MS": "your-value",
"MYSQL_QUERY_TIMEOUT_MS": "your-value"
}
}
}
}브라우저가 앱을 열지 물어본 다음, 앱이 설정을 보여 주고 확인을 요청해요. 키 값은 비워 두니 직접 입력하세요.
프로젝트의 .vscode/mcp.json에 붙여 넣으세요
{
"servers": {
"mysql-read-only": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@shibbirweb/mcp-mysql-read-only"
],
"env": {
"MYSQL_HOST": "your-value",
"MYSQL_PORT": "your-value",
"MYSQL_USER": "your-value",
"MYSQL_PASSWORD": "your-value",
"MYSQL_DATABASE": "your-value",
"MYSQL_PROFILES": "your-value",
"MYSQL_DEFAULT_PROFILE": "your-value",
"MYSQL_CONNECT_TIMEOUT_MS": "your-value",
"MYSQL_QUERY_TIMEOUT_MS": "your-value"
}
}
}
}브라우저가 앱을 열지 물어본 다음, 앱이 설정을 보여 주고 확인을 요청해요. 키 값은 비워 두니 직접 입력하세요.
이 서버는 내 컴퓨터에서 실행되는데, ChatGPT는 인터넷에 있는 서버에만 연결할 수 있어요. 다른 앱을 고르세요.
선택한 앱은 이 기기의 쿠키에만 저장돼요. 계정은 필요 없어요.
MYSQL_HOST envMYSQL_PORT envMYSQL_USER envMYSQL_DATABASE envMYSQL_DEFAULT_PROFILE envMYSQL_CONNECT_TIMEOUT_MS envMYSQL_QUERY_TIMEOUT_MS env이 설정은 제작자의 레지스트리 정보로 만들었어요. README와 다르면 README를 따르세요.
내 컴퓨터에서 실행돼요. 설치하면 AI 앱에 도구 목록이 나타나요.
누구나 볼 수 있는 정보를 점검했고, 코드는 읽지 않았어요. 해당하지 않는 항목은 개수에서 뺐어요. · 2026년 11월 8일 점검
레지스트리 이름이 GitHub 계정 shibbirweb 기준으로 확인되었고, 이 계정이 저장소를 소유하고 있어요
아직 GitHub에서 이 저장소를 읽어 오지 않았어요
아직 GitHub에서 이 저장소를 읽어 오지 않았어요
내 컴퓨터에서 실행되는 서버라 인터넷 엔드포인트가 없어요
내 컴퓨터에서 실행되며, 대신 로컬 설정을 사용해요
내 컴퓨터에서 실행돼요. 도구 목록은 인터넷 엔드포인트가 있는 서버에서만 읽을 수 있어요
레지스트리에서 이 카테고리의 활성 서버 전체와 비교했어요. 스타는 게시자가 저장소를 소유한 경우에만 세요.
해당하는 기본 점검 1개 중 1개를 통과했어요. 코드는 읽지 않았어요. 키나 토큰을 넣기 전에 서버가 어떤 권한을 요구하는지 확인하고, 꼭 필요한 권한만 있는 키를 쓰세요.
입력해야 할 값: MYSQL_PASSWORD, MYSQL_PROFILES
내 컴퓨터에서 실행돼요. AI 앱이 필요할 때 실행하고, 데이터는 제작자의 서버를 거치지 않아요(서버 자체가 온라인 서비스를 호출하는 경우는 제외).
GitHub 저장소는 마지막으로 – 변경됐고, 최신 버전(1.1.6)은 44일 전 레지스트리에 올라왔어요.
Claude Desktop, Claude Code, Cursor, VS Code처럼 MCP를 지원하는 앱에서 쓸 수 있어요. 내 컴퓨터에 Node.js, Docker도 있어야 해요.
같은 카테고리에는: Supabase, MongoDB MCP Server, Elasticsearch MCP Server
같은 카테고리에서 다른 제작자가 만든 서버예요. 스타 순으로 정렬했어요.
카드 보는 법:★ GitHub 스타i세 기둥: 리뷰 · 점검 · 사용 정도i업데이트 = 최신 버전을 레지스트리에 공개한 날i
MCP server for interacting with the Supabase platform
MongoDB Model Context Protocol Server
MCP server for interacting with Elasticsearch
제작자의 저장소에서 쓰인 그대로 가져왔어요. PopNx MCP가 검토하거나 보증한 내용이 아니에요. HTML, 이미지, 스크립트는 제거했어요. 링크를 누르면 이 사이트를 벗어나요.
An MCP server that gives an AI assistant read-only access to MySQL, and lets it change database, server and credentials mid-conversation without restarting the client.
Most MySQL MCP servers read their connection from environment variables once at startup. Pointing one at a different database means editing a config file and restarting the assistant, which loses your conversation. This server keeps the connection as runtime state, so switching is just another tool call.
Runs from npm with npx, or entirely in Docker with nothing installed on your machine.
flowchart LR
A["AI assistant Claude Desktop / Claude Code"] B["mcp-mysql-read-only one process, whole session"] C[("app_dev")] D[("staging")] E[("analytics")] F[("any server reached with connect")]
A <-->|"MCP over stdio"| B B -.->|"pooled per target"| C B -.->|"pooled per target"| D B -.->|"pooled per target"| E B -.->|"opened at runtime"| F
The server lives for the whole session, so the active connection is just state inside it. Switching selects a different pool rather than reconnecting, and switching back reuses a warm one.
Two ways to run it. npm is the shorter setup; Docker keeps the server inside a container.
MYSQL_HOST=127.0.0.1 \
MYSQL_USER=readonly \ MYSQL_PASSWORD=secret \ MYSQL_DATABASE=my_database \ npx -y @shibbirweb/mcp-mysql-read-only
Requires Node 22 or newer. There is no container in the way, so 127.0.0.1 means what you expect.
docker run -i --rm \
--add-host host.docker.internal:host-gateway \ -e MYSQL_HOST=host.docker.internal \ -e MYSQL_USER=readonly \ -e MYSQL_PASSWORD=secret \ -e MYSQL_DATABASE=my_database \ shibbirweb/mcp-mysql-read-only
Use host.docker.internal to reach a MySQL running on the same machine as Docker. Inside the container, localhost means the container itself.
The container is the more isolated of the two: the server runs with only what the image and the environment give it. Over npm it runs directly on your machine with your user's access. Both enforce the same read-only guarantee.
Add to claude_desktop_config.json:
{
"mcpServers": { "mysql": { "command": "npx", "args": ["-y", "@shibbirweb/mcp-mysql-read-only"], "env": { "MYSQL_HOST": "127.0.0.1", "MYSQL_USER": "readonly", "MYSQL_PASSWORD": "secret", "MYSQL_DATABASE": "my_database" } } } }
Or the same server in Docker:
{
"mcpServers": { "mysql": { "command": "docker", "args": [ "run", "-i", "--rm", "--add-host", "host.docker.internal:host-gateway", "-e", "MYSQL_HOST=host.docker.internal", "-e", "MYSQL_USER=readonly", "-e", "MYSQL_PASSWORD=secret", "-e", "MYSQL_DATABASE=my_database", "shibbirweb/mcp-mysql-read-only" ] } } }
Same shape, in .mcp.json at your project root:
{
"mcpServers": { "mysql": { "command": "npx", "args": ["-y", "@shibbirweb/mcp-mysql-read-only"], "env": { "MYSQL_HOST": "127.0.0.1", "MYSQL_USER": "readonly", "MYSQL_PASSWORD": "secret", "MYSQL_DATABASE": "my_database" } } } }
Either form from the Claude Desktop section works here too.
Restart the client once. After that you never need to restart it to change database.
Credentials in these files sit on disk in plain text. Prefer a MySQL account with only
SELECTgrants, and keep the file out of version control. See Security.
Just ask. These map onto the connection tools:
"switch to the staging database"
"what tables are in
analytics?"
"connect to MySQL on 10.0.0.5 as reporting_user"
| Want | Restart? |
|---|---|
| Another database on the same server | No |
| Another named profile | No |
| A different server or credentials | No |
A new permanent profile in MYSQL_PROFILES | Yes, once |
sequenceDiagram
autonumber actor You participant A as Assistant participant S as MCP server participant M as MySQL
You->>A: "how many users in staging?" A->>S: use_connection(staging) S->>M: open + SELECT 1 M-->>S: ok Note over S: verified, so the switch is committed S-->>A: Switched to staging A->>S: run_query(SELECT COUNT(*) ...) S->>M: SELECT COUNT(*) ... M-->>S: 4821 A-->>You: 4821 users in staging
You->>A: "and in production?" Note over A,S: same session, no restart A->>S: use_connection(production)
A switch that fails verification is never committed, so the previous connection stays active and the session keeps working:
sequenceDiagram
participant S as MCP server participant M as MySQL
S->>M: open "no_such_db" + SELECT 1 M-->>S: Unknown database Note over S: active connection left untouched S-->>S: Error: Unknown database 'no_such_db'
Define several connections up front with MYSQL_PROFILES, a JSON object:
{
"local": { "host": "host.docker.internal", "user": "root", "password": "", "database": "app_dev" }, "staging": { "host": "db.staging.internal", "user": "readonly", "password": "secret", "database": "app" }, "reports": { "host": "db.staging.internal", "user": "readonly", "password": "secret", "database": "analytics" } }
Passed as a single environment variable:
docker run -i --rm \
-e MYSQL_PROFILES='{"local":{"host":"host.docker.internal","user":"root","password":"","database":"app_dev"}}' \ -e MYSQL_DEFAULT_PROFILE=local \ shibbirweb/mcp-mysql-read-only
host defaults to host.docker.internal, port to 3306, password to empty. user and database are required; a profile missing either is skipped with a warning rather than taking the server down.
The connect tool takes a host, user, password and database at runtime and keeps it for the rest of the session under an alias. Nothing is written to disk, and no restart is involved, so you never have to edit MYSQL_PROFILES just to look at one database once.
| Tool | Purpose |
|---|---|
current_connection | Which server and database is active |
list_connections | Available profiles, * marks the active one |
list_databases | Databases on the connected server |
use_database | Switch schema on the current server |
use_connection | Switch to a named profile, optional database override |
connect | Open any server with explicit credentials, optional alias |
| Tool | Purpose |
|---|---|
list_tables | Tables in the active database |
describe_table | Columns and types for one table |
get_table_indexes | Indexes for one table |
get_foreign_keys | Foreign key relationships for one table |
get_table_sample | Up to 50 sample rows |
run_query | One read-only statement |
Every reading tool also accepts an optional database, applied to that call only, leaving the active connection alone. Useful for comparing two databases without switching back and forth.
use_database, use_connection and connect each open the connection and run SELECT 1 before committing the switch, so a bad database name or unreachable host fails immediately. A failed switch leaves the previous connection active.
| Variable | Default | Purpose |
|---|---|---|
MYSQL_PROFILES | none | JSON object of named profiles |
MYSQL_DEFAULT_PROFILE | none | Which profile starts active |
MYSQL_HOST | host.docker.internal | Single-connection fallback |
MYSQL_PORT | 3306 | " |
MYSQL_USER | none | " |
MYSQL_PASSWORD | empty | " |
MYSQL_DATABASE | none | " |
MYSQL_QUERY_TIMEOUT_MS | 30000 | Statement timeout |
MYSQL_CONNECT_TIMEOUT_MS | 10000 | Connection timeout |
MYSQL_USER plus MYSQL_DATABASE register a profile named default. None of these are required: with no configuration at all the server still starts, and the tools tell you to call connect.
Starting profile: MYSQL_DEFAULT_PROFILE if it names a real profile, else default, else the first one defined.
Two independent layers keep this read-only, so a hole in one is not automatically a write.
flowchart TD
Q["run_query"] --> V{"SQL validator"} V -->|"DELETE, DROP, stacked statements, write behind a CTE, INTO OUTFILE"| R1["rejected, no connection used"] V -->|"reads only"| D{"mysql2 driver"} D -->|"multipleStatements: false"| R2["a second statement cannot even be sent"] D --> M{"MySQL session"} M -->|"SET SESSION TRANSACTION READ ONLY"| R3["writes rejected by the server with error 1792"] M -->|"read"| OK["rows returned"]
style R1 fill:#fde,stroke:#b55 style R2 fill:#fde,stroke:#b55 style R3 fill:#fde,stroke:#b55 style OK fill:#dfd,stroke:#5b5
A SQL validator. Only SELECT, WITH, SHOW, DESCRIBE, DESC and EXPLAIN may lead a statement. Before any keyword check, string literals, backtick identifiers and --, # and /* */ comments are blanked out, so a keyword or semicolon hidden inside a literal is never mistaken for SQL. Statement stacking is rejected. WITH and EXPLAIN ANALYZE have their bodies scanned for write keywords, because both can carry a write behind a harmless first word. INTO OUTFILE, INTO DUMPFILE, LOAD DATA, SLEEP() and BENCHMARK() are blocked. Table and database names passed as tool arguments must match ^[A-Za-z0-9_$]+$, so they cannot break out of the identifier they are interpolated into.
The MySQL session. Every pooled connection runs SET SESSION TRANSACTION READ ONLY and SET SESSION MAX_EXECUTION_TIME. With autocommit on, each statement is its own read-only transaction, so the server rejects a write with error 1792 even if the validator were somehow bypassed. The driver runs with multipleStatements: false, so a second statement cannot be smuggled in at all.
This is a guard, not a permission system. It stops an assistant from writing through *this* server. It does not stop anyone holding the same credentials from writing through any other client.
Point it at a read-only MySQL user. This is the real protection:
CREATE USER 'readonly'@'%' IDENTIFIED BY 'a strong password';
GRANT SELECT ON your_database.* TO 'readonly'@'%';
With that, a bug in this server st
앞부분만 보여 드려요. 나머지는 저장소에서 읽어 보세요