wasaga
MCP Serverwasagapublic

db mcp

database mcp http server

Repository Info

2
Stars
1
Forks
2
Watchers
0
Issues
Go
Language
Apache License 2.0
License

About This Server

database mcp http server

Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.

Documentation

Overview

This is a simple demo MCP HTTP server. You can use it with claude.ai or other compatible MCP clients.

You need protect its access using Pomerium. Currently you need to use main branch.

Config

Note that you do need to set up database persistence, to keep client registrations etc.

Note that you need pass a domain name as in the from of the route.

You may obtain a test database: https://github.com/jpwhite3/northwind-SQLite3

authenticate_service_url: https://authenticate.pomerium.app

autocert: true

runtime_flags:
  mcp: true

databroker_storage_type: postgres
databroker_storage_connection_string: postgresql://postgres:postgres@postgres:5432/pomerium?sslmode=disable

routes:
  - from: https://db-mcp.your-domain.com
    to: http://mcp-sqlite:8080
    preserve_host_header: true
    mcp: {}
    policy:
      - allow:
          or:
            - domain:
                is: your-domain.com
services:
  postgres:
    image: postgres:17
    environment:
      POSTGRES_USER: postgres
      POSTGRES_PASSWORD: postgres
      POSTGRES_DB: pomerium
      POSTGRES_HOST_AUTH_METHOD: trust
    ports:
      - 5432:5432
    volumes:
      - postgres-data:/var/lib/postgresql/data
  pomerium:
    image: pomerium/pomerium:main
    ports:
      - "443:443"
      - "80:80"
    volumes:
      - ./config.yaml:/pomerium/config.yaml
      - pomerium-autocert:/data/autocert
  mcp-sqlite:
    build:
      context: mcp-sqlite
      dockerfile: Dockerfile
    volumes:
      - ./db/northwind.db:/northwind.db
    environment:
      PORT: 8080
      DB_FILE: /northwind.db
      BASE_URL: https://db-mcp.your-domain.com
    expose:
      - 8080
volumes:
  postgres-data:
  pomerium-autocert:

Quick Start

1

Clone the repository

git clone https://github.com/wasaga/db-mcp
2

Install dependencies

cd db-mcp
npm install
3

Follow the documentation

Check the repository's README.md file for specific installation and usage instructions.

Repository Details

Ownerwasaga
Repodb-mcp
LanguageGo
LicenseApache License 2.0
Last fetched8/10/2025

Recommended MCP Servers

💬

Discord MCP

Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.

integrationsdiscordchat
🔗

Knit MCP

Connect AI agents to 200+ SaaS applications and automate workflows.

integrationsautomationsaas
🕷️

Apify MCP Server

Deploy and interact with Apify actors for web scraping and data extraction.

apifycrawlerdata
🌐

BrowserStack MCP

BrowserStack MCP Server for automated testing across multiple browsers.

testingqabrowsers

Zapier MCP

A Zapier server that provides automation capabilities for various apps.

zapierautomation