peek
Provides tools for browsing and querying MySQL databases, including table introspection, tabular queries, and value peeking, with read-only transaction enforcement.
Provides tools for browsing and querying Neo4j graph databases, leveraging the driver package system.
Provides tools for browsing and querying PostgreSQL databases, including table introspection, tabular queries, collection scans, and value peeking, with read-only transaction enforcement.
Provides tools for browsing Redis keyspaces, including collection scans, key-value access, introspection, and value peeking.
Provides tools for browsing and querying SQLite databases, with read-only flag and PRAGMA query_only, including tabular queries and value peeking.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@peekopen the customers table and show me the first 10 rows"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Every screenshot in this README was produced by a single set_layout MCP call β see
apps/desktop/scripts/screenshot.mjs.
peek is a desktop database GUI that doubles as an MCP server. Ask Claude to open a table, run a query, or arrange panels for comparison β it happens in the window in front of you, because AI tool calls and your own clicks share one command channel. A built-in chat panel runs Claude Code inside the app, so the agent you talk to drives the window it lives in.
Features
π€ One UI for human and AI β every click and every MCP tool call is a Command on the same bus; no shadow state, no sync step
π¬ Claude Code built in β the chat panel hosts it over ACP, wired back to peek's own MCP server
π οΈ 16 MCP tools β connect, introspect schemas, run queries, open views, control the layout, notify, ask the user
π Read-only, enforced by the server β read-only transactions and flags, no keyword filtering anywhere
π Data reaches the AI only when you attach it β otherwise a query returns the model at most 20 rows
π¦ Databases are plugins β six drivers load from
~/.peek/packages/<id>/; adding one means installing a directoryβ‘ A million rows scroll β 0 dropped frames, ~0.5 s launch, 6.3 MB bundles (Performance)
π Passwords live in the OS keychain β never plaintext on disk
Databases: PostgreSQL Β· MySQL Β· SQLite Β· Redis Β· Qdrant Β· Neo4j
Related MCP server: MCP Server for Database
Install
Download peek-v0.0.1-macos-arm64.zip from
Releases, unzip, and drop peek.app into
Applications. Apple Silicon only for now.
This build is ad-hoc signed (no Developer ID yet), so macOS will refuse the downloaded app as "damaged" on first launch. Clear the quarantine flag once and it opens normally:
xattr -d com.apple.quarantine /Applications/peek.appAlternatively: System Settings β Privacy & Security β "Open Anyway". A signed and notarized build is planned.
Quick start
Requirements: Node β₯ 22, pnpm 10.32.1 (pinned via packageManager), and a database to
point at. Developed and tested on macOS / Apple Silicon only so far.
pnpm install
pnpm dev # opens the window; MCP server on port 7332
pnpm build # production bundles into apps/desktop/outIn the app: pick a driver in the sidebar, paste a connection string, and browse. Connections that
complete a handshake are saved automatically (passwords go to the OS keychain). Tables open as
virtualized grids, SQL runs in a CodeMirror editor with ββ, panels split with β\ / ββ§\, and
every result view has a cancel button backed by a real deadline.
Tests
pnpm -r typecheck # strict TS across every package
pnpm -r test # 2567 tests; driver suites need real servers (see below)The desktop suite is pure logic and needs nothing. Each driver suite is an integration suite that reads its target from the environment and skips itself when the server is unreachable:
PEEK_TEST_PG_URL="postgresql://user@localhost:5432/your_db" \
PEEK_TEST_REDIS_URL="redis://localhost:6379" \
PEEK_TEST_QDRANT_URL="http://localhost:6333" \
PEEK_TEST_MYSQL_URL="mysql://root:pw@localhost:3306/peek_test" \
PEEK_TEST_NEO4J_URL="bolt://localhost:7687" PEEK_TEST_NEO4J_PASSWORD="β¦" \
pnpm -r testCaveats: the Redis / Qdrant / MySQL / SQLite suites create and clean up their own fixtures; the
PostgreSQL suite currently asserts against a specific development database (self-provisioning is a
TODO); Neo4j always needs an explicit password. There is also an end-to-end smoke test of the built
app (smoke-drivers.mjs) that drives every configured
driver over MCP.
Using it from Claude Code
peek starts its MCP server on launch (loopback only, bearer-token authenticated) and writes the
endpoint to ~/.peek/mcp.json (mode 0600). Register once:
claude mcp add peek --transport http http://127.0.0.1:7332/mcp \
--header "Authorization: Bearer <token from ~/.peek/mcp.json>"The exact command, token filled in, is one click away in Settings β MCP endpoint, which is also where you change the port or rotate the token.
The tools
Tool | Purpose |
| See the current UI: layout, tabs, result status, connections. Never returns row data. |
| Every connection with driver, status, and capabilities; secrets masked. |
| Open a database connection. |
| Expand the namespace tree (db β schema β table); returns the refs |
| Put a view on screen: |
| Execute a statement. The AI gets the first 20 rows plus the count; the full result stays in the UI. |
| Declare the whole panel tree in one call β several views side by side for comparison. |
| Resize one split, like dragging a divider. |
| Move one view to another panel, as a tab or a split. |
| Bring a background tab to the front. |
| Stop a running query. |
| Drive the chat panel from outside: send messages, read the transcript, manage the session. |
| Notify the user, even when peek is not the frontmost window. |
| Ask the user a multiple-choice question and wait for the answer. |
There is deliberately no tool that hands a full result set to the model.
The chat panel
An ask call, suspended until the human answers β agents cannot answer their own questions.
You don't have to bring your own client: peek hosts Claude Code itself, as a tab. The embedded
agent starts with no file tools, no shell, and no MCP servers other than peek's own β it does not
inherit your settings.json, CLAUDE.md, or configured MCP servers, and
verify-chat-security.mjs checks that against the
real agent. Two settings (both off by default) let you opt back in: file/command tools, and MCP
servers of your own. Each explains its cost next to the switch β see
Security model.
Security model
MCP server: loopback only,
Authorization: Bearerrequired,Host/Originchecked against DNS rebinding, token compared in constant time and never logged.Read-only: enforced by the database server wherever one can (transactions, flags); Redis and Qdrant drivers simply issue no write command. One gap: a pre-existing stored procedure that opens its own read-write transaction β use a read-only database account for anything you care about.
Process isolation: drivers run in one child process per connection; a wedged query or a crash cannot take the window down, and killing the process is an unconditional cancel. Package code never runs in the main process.
Packages are trusted, not sandboxed. What you install is what you trust β the same deal as a VS Code extension or an MCP server. peek validates a package's manifest shape, isolates its processes, and strips credentials from their environment, but there is no signature check and no sandbox. Details in the design docs.
Enabling the agent's file tools has a real cost: an agent that can read
~/.peek/mcp.jsonholds the bearer token, and permission prompts stop being a barrier. The settings panel says exactly this when the switch is on.
Performance
Measured on an Apple M2 Max (macOS, 120 Hz Retina) against a generated 1,000,000-row SQLite
fixture, by two reproducible benchmark scripts
(bench-startup.mjs,
bench-scroll.mjs):
Scenario | Result |
Launch β window ready (warm) | median 518 ms |
Scrolling 1,000,000 rows, 600 frames | 0 dropped frames |
DOM elements in the grid at 1,000,000 rows | < 400 (bounded by the viewport, not the data) |
| 2.1 s |
Built bundles | 6.3 MB total |
Results stream as columnar chunks with backpressure and an LRU cache, and the virtual scrolling is hand-written because Chromium silently clamps element heights around 699,000 rows at Retina resolution β no DOM dimension in peek is derived from the row count.
Status and limitations
Early but real: all six databases connect, introspect, and stream rows; the layout, chat, MCP
surface, and package system described above are implemented and tested. pnpm build produces
bundles, and package-mac.mjs produces a macOS .app;
there is no signed installer yet. Writes are deliberately out of scope until the read-only path has
fully stabilized.
Known limitations, briefly (details in docs/PLAN.md and docs/design/):
A large query pauses (by design) at ~200k rows until you scroll further; rows evicted from the ~200 MB cache can't be re-fetched in place β re-run the query.
Fixed 24 px row height; large values open in a modal.
Accessibility is solid at the layout level (ARIA tablists, roving tabindex, focus management) but minimal inside panel bodies, and unverified against a real screen reader.
A restored workspace reopens layout, tabs, and editor text, but never re-runs queries.
Qdrant: no query cancellation (the API offers none β the button says so), and table headers can't sort yet.
Stored credentials are as private as your OS user account; binary signing lands with the first published build.
Repository layout
peek/
ββ packages/
β ββ core/ # command schemas, workspace types, capability + chunk protocol, driver-host runtime
β ββ db-postgres/ # PostgreSQL driver
β ββ db-sql/ # MySQL + SQLite behind one dialect layer
β ββ db-redis/ # Redis driver
β ββ db-qdrant/ # Qdrant driver
β ββ db-neo4j/ # Neo4j driver, plus the `graph` view kind
ββ apps/desktop/ # Electron app: main / preload / renderer, plus scripts/ (benchmarks, smoke tests)
ββ docs/ # PLAN.md (design record) and docs/design/ (per-change design docs)docs/PLAN.md is the authoritative design record β architecture decisions, the
performance budget, and milestone definitions (PLAN.zh-CN.md is the Chinese
original). Per-change design docs live in docs/design/.
License
MIT. See LICENSE.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to manage and query SQLite databases through MCP tools, supporting CRUD operations, schema management, and saved views.4MIT
- FlicenseNot gradedqualityFmaintenanceA read-only MCP server that enables AI agents to explore database schemas and execute safe queries on PostgreSQL and MySQL.
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to explore MySQL database schemas and execute read-only queries through a safe, MCP interface.
- AlicenseNot gradedqualityBmaintenanceProvides read-only access to databases for MCP-compatible AI tools, allowing schema exploration and SELECT queries without exposing credentials or risking data changes.923MIT
Related MCP Connectors
Analytical memory for AI agents: a real Postgres queried in plain English over MCP. One command.
Read-only Remote MCP for externally grounded AI agent trust receipts.
GibsonAI MCP server: manage your databases with natural language
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Gyangu/peek-viewer'
If you have feedback or need assistance with the MCP directory API, please join our Discord server