Business software and compliance Case study

MCP server for a database-performance SaaS

A Model Context Protocol (MCP) server that lets customers use their own AI assistant to read their database findings and ask the platform to analyse a query, with scoped sign-in, read-mostly tools and an audit trail.

Illustration of an AI assistant connecting through an MCP server, with sign-in, rate limits, scoped tools and an audit log, to the product backend
Client
Database performance SaaS
Service
AI, Integrations, Web apps
Years
2026
Stack
Next.js, TypeScript, PostgreSQL, Redis and 4 more
Platforms
Web

Client details are private, so this study describes the client by type.

Overview

The platform analyses customers' databases and recommends fixes. Customers increasingly work inside an AI assistant or coding tool, so we added an MCP server on its own hostname. A customer connects their assistant once, signs in, and can then ask about their projects, databases and recommendations, or send a slow query to the platform for analysis, without leaving the assistant. It reuses the platform's existing analysis pipeline, sign-in and billing rather than copying them, and it is live in production.

The challenge

Giving an outside AI model access to customer data safely, with analyses that take longer than a normal request, assistants that retry, and sign-in that has to work with standard OAuth for chat assistants as well as simple keys for coding tools.

What we built

  1. An MCP server on its own hostname, as a stateless HTTP endpoint, so any instance can answer and no session store is needed
  2. Two ways to sign in that resolve to one identity: scoped keys for coding tools and scripts, and standard OAuth 2.1 for chat assistants
  3. The platform acting as the OAuth authorisation server for assistants, with a consent screen, a list of connected apps with revoke, and sign-up in the middle of a sign-in
  4. A small set of narrowly scoped tools for projects, databases, recommendations, usage and analysis, most of them read-only
  5. Results formatted for models, with safeguards on what is returned
  6. Handling of long-running analyses and repeated requests, so assistants do not cause duplicate work or charges
  7. One shared analysis pipeline for the web chat and the MCP tools, so rate limits, locking, live updates and billing behave the same in both
  8. A rate limit per credential, an audit record of every call, and error messages in plain sentences
  9. A settings area to connect and revoke assistants, and a public setup guide for each kind of assistant
  10. Hostname, proxy configuration and deployment added to the existing container and CI pipeline
  11. A test suite with a test for each tool and each security rule, and a browser end-to-end test of the full sign-in

Technology used

Technology named in the project records, by layer
LayerChoicePurpose
BackendTypeScript and Next.js, shared with the web appreuse of analysis, billing and rate limits
DataPostgreSQL and Redisfindings and audit records; limits and retry keys
DeliveryDocker and GitHub Actionsgated tests and deployment to a dedicated hostname
ProtocolMCP over stateless HTTPany instance can answer; no session store
Sign-inScoped keys and OAuth 2.1 with PKCEone identity for every tool; consent and revoke for assistants
QualityAutomated testseach tool and security rule checked; repeatable AI mode

What happened next

  • Delivered

    The work described above was delivered to the client.

  • Operational facts
    • Our work on this project took place in 2026.

Screens

Could this be your project?

  • You have a defined job in a real process that automation or AI could take on. AI services
  • Your product has to connect to payment, accounting, messaging or other third-party systems.
  • You work in business software and compliance and want a team that has built for it before. Business software and compliance work

Request similar work

Questions about this project

How long did this project take?

Our work on it took place in 2026.

What technology was used?

Next.js, TypeScript, PostgreSQL, Redis, Docker, MCP (Model Context Protocol), OAuth 2.1, GitHub Actions.

Similar work

Illustration of the four steps from a slow query to a reviewed fix: collect, analyse, recommend, review and apply

Also Next.js and TypeScript, same industry

AI-assisted database performance SaaS

  • Business software and compliance
  • AI
  • Web apps
  • Integrations

2026

A SaaS platform that finds slow queries and missing indexes in live databases and returns ranked, AI-assisted fixes with risk and rollback, optionally as pull requests.

Reactor: AI assistant and Web3 data back end screenshot

Also TypeScript and PostgreSQL, also a web app

Reactor: AI assistant and Web3 data back end

  • Fintech and payments
  • Web apps
  • Integrations
  • AI

2024–2025

A Node.js back end for Reactor, an AI chat assistant with Web3 tools: streaming chat and voice, a keyed language-model API for businesses, and a crypto service for token audits, swaps and rewards.

Froono: customer loyalty platform screenshot

Also TypeScript and PostgreSQL, also a web app

Froono: customer loyalty platform

  • Retail and eCommerce
  • Web apps
  • Mobile apps
  • Integrations
  • AI

2023–2026

A multi-tenant customer loyalty platform: web admin, customer API, a mobile app and a PWA, with receipt checking, lucky draws, WhatsApp campaigns, AI image generation and online payments.

Building something similar?

Tell us what you need and your industry. We will tell you what is realistic, what it would take, and show you the closest work we have done.

Are you ready to partner with us?

Our good-natured team is waiting to hear your business requirements.

Book a free project call