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.

Banner with the title MCP server for a database performance SaaS: an AI assistant connected through a locked MCP connector to the platform, with scoped sign-in and read-mostly tools
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

Banner with the title AI-assisted database performance SaaS: a performance gauge surrounded by the MySQL, MariaDB, PostgreSQL and MongoDB logos

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.

Banner with the Xpress Money logo and the title Global remittance platform, over a globe with transfer routes and Transfer sent and Money received notices

Also TypeScript and Redis, same industry

Xpress Money: global remittance platform

  • Fintech and payments
  • Business software and compliance
  • Web apps
  • Integrations

2022–2023

Xpress Money, a remittance platform for Wizz Financial: Angular portals and .NET services deployed on Azure, with the commercial ESB replaced by Azure Service Bus.

AXENCIS: brand protection case management platform screenshot

Also Redis and Docker, same industry

AXENCIS: brand protection case management platform

  • Business software and compliance
  • Web apps
  • Integrations

2024–2026

xcore, AXENCIS's Laravel and Vue platform for tracking online marketplace listings through investigation to legal case, with browser extensions, evidence capture and accounting for clients and law firms.

Start a similar project

Tell us what you need. We come back with questions, what is realistic, an estimate and the closest work we have done.