Read-only database MCP server
An MCP server in TypeScript that lets an AI assistant look things up in a PostgreSQL database and nothing else: a dedicated read-only database role, a short list of exposed views, row and time limits, tests against a real database, and a setup for your agent.
What you build
- An MCP server that reads a Postgres database and nothing else
- A read-only role and a short list of exposed views
- Row and time limits, tested against a real database
What you need
| Stack | MCP TypeScript SDK · PostgreSQL (pg) · zod · Vitest |
|---|---|
| Level | Advanced |
| Platform | Desktop |
| Plan | Pro |
| Needs on your computer | Node.js, Docker |
| Setup questions | About 2 minutes |
Start a project from one of these templates
Free plan on macOS. Pro is $10 a month or $96 a year.