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

StackMCP TypeScript SDK · PostgreSQL (pg) · zod · Vitest
LevelAdvanced
PlatformDesktop
PlanPro
Needs on your computerNode.js, Docker
Setup questionsAbout 2 minutes

Start a project from one of these templates

Free plan on macOS. Pro is $10 a month or $96 a year.