planetscale/mcp-server is an open-source collection of TypeScript tools and shared code for the PlanetScale MCP server, which lets compatible coding agents interact with PlanetScale. It supports local development, testing, and deployment of the repository’s maintained tools; other server features are generated from PlanetScale’s API specification. The catalogue entries provide instructions, an MCP configuration, and a skill for working with it.
Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/planetscale/mcp-server/verify-ps-mcpnpx skills add planetscale/mcp-server --skill verify-ps-mcpgit clone --depth 1 https://github.com/planetscale/mcp-serverWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/planetscale/mcp-server/verify-ps-mcp)<a href="https://agentmods.dev/skills/planetscale/mcp-server/verify-ps-mcp"><img src="https://agentmods.dev/badge/skills/planetscale/mcp-server/verify-ps-mcp.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00056 | $0.01480 |
| Opus 5 | $0.00028 | $0.00740 |
| Sonnet 5 | $0.00011 | $0.00296 |
| Haiku 4.5 | $0.00006 | $0.00148 |
Grade A, and why
verify-ps-mcp scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 142 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Verify the PlanetScale MCP server
The user-facing surface of this repo is an MCP server spoken over stdio: a client
(Cursor, MCP Inspector, the hosted Gram deployment) starts src/server.ts, lists
tools, and calls them. Verification means being that client — start the real
server, call a real tool the way a real client would, and keep the response.
npm run lint only proves the code typechecks. It does not prove a tool returns
the right fields, so it is never sufficient as a proof on its own.
Launch
There is no long-lived server to babysit. Each drive spawns its own
node_modules/.bin/tsx src/server.ts child over stdio and kills it when the run
ends, so runs are isolated from each other and can overlap safely.
One-time setup in a fresh checkout:
npm install
cp .env.example .env # then fill in PLANETSCALE_API_TOKEN
The server loads .env itself through dotenv/config. Auth resolves in
src/lib/auth.ts: PLANETSCALE_OAUTH2_ACCESS_TOKEN wins if set, otherwise
PLANETSCALE_API_TOKEN (a <token-id>:pscale_tkn_... service token) is sent
as-is. Never echo either value into a terminal, a log, or an evidence file.
Doctor
Run this first whenever anything looks wrong. It is read-only: it starts a server, initializes the MCP session, lists tools, and checks the thirteen expected tools are registered.
node .cursor/skills/verify-ps-mcp/drive.mjs doctor
Healthy output names all thirteen tools and exits 0:
OK 13 tools registered: execute_read_query, execute_write_query, get_insights, get_payment_method_setup, get_postgres_logs, get_query_tag, list_cluster_sizes, list_query_error_executions, list_query_error_patterns, list_query_tag_summaries, list_query_tags, search_documentation, update_payment_method
A crash here means the server itself is broken (a bad import, a Zod schema that throws at construction), not the tool you were investigating. Fix that before driving a feature.
Drive
node .cursor/skills/verify-ps-mcp/drive.mjs call <tool> '<json args>' \
[--expect <substring>] [--label <name>]
What ships with it
13 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- drive.mjs 7.2 KB runs code
- features/execute-read-query.md 2.2 KB
- features/execute-write-query.md 2.7 KB
- features/get-insights.md 6.5 KB
- features/get-postgres-logs.md 9.1 KB
- features/get-query-tag.md 4.5 KB
- features/list-cluster-sizes.md 1.7 KB
- features/list-query-error-executions.md 4.4 KB
- features/list-query-error-patterns.md 3.5 KB
- features/list-query-tag-summaries.md 8.5 KB
- features/list-query-tags.md 6.1 KB
- features/README.md 3.1 KB
- features/search-documentation.md 3.8 KB
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 5d ago First seen · 142 lines · 56 tokens per session scan A 7e2efb0ee0d0
verify-ps-mcp is a skill published in the GitHub repository planetscale/mcp-server (4 stars, last pushed yesterday), licensed Apache-2.0. It adds 56 tokens to every session and 1,480 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
amazon aurora dsql
Deprecated compatibility redirect for Aurora DSQL guidance. Use when a request concerns DSQL, Aurora DSQL, distributed SQL, DSQL schemas, migrations, queries, authentication, performance, or application development.
release-checklist
Pre-release safety audit for the Bifrost repo. Scans database migrations changed in a release for high-scale deadlock / lock-contention risks and for work that blocks application boot time, then produces a pass/warn/fail report with a concrete remediation plan. Invoked with /release-checklist [git-ref-range]. Built to…
fix-bug
Use when given a GitHub issue URL or number to investigate and implement a fix. Triggers on "fix issue", "fix bug", "fix.
testing
Run and troubleshoot tests for DBHub, including unit tests, integration tests with Testcontainers, and database-specific tests. Use when asked to run tests, fix test failures, debug integration tests, troubleshoot Docker/database container issues, or add new tests. Also use when verifying code changes work correctly…
explore
Explore a database schema token-efficiently via the DBHub tools; use before writing SQL against a schema you haven't seen.
solr-semantic-search
To build Solr phrase-tagging semantic search: concept tagging, taxonomy, graph paths.