Legal AI Feature Delivery Speed Doubled
50%
Faster integration2х
Faster feature delivery8.8
Feature NPS, up from 7.3
Client Overview

Business Problem
Situation Before
Core Pain
Risks
- Staying on the monolith would keep delivery lagging as new AI features were requested
- Competing legal AI products were chasing the same clients, with delivery speed a deciding factor
Constraints
- Heavy bank security and compliance requirements applied to every new service that shipped
- High turnover and knowledge gaps in the existing team slowed the work down considerably
- The legacy system had to keep running in parallel throughout the whole migration
- No formal analytics or product metrics were in place when the project first started
Project Goals
- Enable the legal team to ship new AI capabilities faster
- Reduce the development cost of integrating with new third-party legal data providers
- Improve the quality and relevance of AI-generated responses for legal workflows
- Move from monolithic to agent-based architecture
- Build a core MCP as the shared context and tooling layer
- Add an orchestrator agent to route and coordinate multi-skill workflows
- Use LangChain and LangGraph as the AI framework layer
- Feature delivery speed: target 1.5× improvement
- Third-party integration time: target 40%+ reduction
- Response quality: measurable improvement assessed by legal team users
Solution
Microservices architecture with Orchestrator agent that receives user requests and routes them to proper skill agents. Core MCP service acts as a shared tool and context registry, enabling any agent to access approved external data sources through a standardized interface. LangChain for LLM chain construction; LangGraph for stateful agent workflow orchestration.
Pynest built the transaction processing flow end-to-end, from intake through validation, pricing reconciliation, discrepancy analysis and upload. The team designed a 5-step validation process for Excel spreadsheets of varying quality, with a pre-upload stage that stops invalid data from entering the core system. A structured discrepancy report process runs with the advertiser clients and tracks each resolution. The full backlog of 12,000+ transactions was batch-uploaded into the core system, and the team documented the work as script specifications so it can be automated later.
Services are containerized and deployed inside the bank internal infrastructure, through the existing CI/CD pipeline rather than a new one. Aligning with the bank's own tooling kept the migration inside its security perimeter and avoided new dependencies in a regulated environment. MCP was chosen as the integration layer because it cuts the ongoing cost of writing custom third-party integration code.
Every service was adapted to meet the bank internal security requirements before it shipped, and each one passed a formal security review first. Role-based access control governs which legal team users reach which capabilities. Data handling follows the bank data governance policies throughout. No data leaves the system outside the approved MCP integrations, so external egress stays inside a controlled, reviewed boundary.
Key Steps
Pynest planned out the system architecture, broke the platform into agent components, designed the MCP service and created the LangGraph orchestration pattern. Discovery had shown the real problem was the inflexible monolith, not the AI itself, so the work centered on structure.
The team built the main services: the MCP context and tooling layer, the orchestrator agent, and the first two to three skill agents. Each service was adapted to the bank security requirements and passed formal review before shipping.
Pynest keeps adding new skill agents, moving the old monolith to the new setup piece by piece and improving response quality. The legacy system runs in parallel throughout, so live legal work is never interrupted.

Results & Impact
Project Snapshot
See Other Works
Secure LLM Gateway for a 63,000-Person Enterprise
Secure enterprise AI access with centralized governance, lower latency, content controls, and full token usage visibility

Bond Settlement Cut from 2 Days to 30 Minutes
End-to-end capital markets platform automating bond issuance, trading, settlement, and investor servicing

API Response Time Down 80% for a Bloomberg Rival
Financial analytics platform delivering real-time market data, news processing, and scalable backend services for fintech

