Project 02 · Agentic AI / Business Analytics / MCP
BizBridge AI
An AI-powered business analytics platform combining a custom Model Context Protocol server, multi-provider LLM agents, and a real-time inventory dashboard.
Source repositoryPurpose
Business questions need answers grounded in structured records, while language models should not have unrestricted access to the underlying database. BizBridge places a narrow, read-only MCP interface between the agent and business data.
Technical approach
A user asks a natural-language question in the Streamlit application. The configured LLM agent selects an MCP tool; the server runs an allowed read-only analytics operation against SQLite; the result returns to the agent for a grounded response. Provider integrations include Ollama, Gemini, and OpenAI.
Architecture
The agent and the business-data access layer are separate. The agent communicates with a local MCP server; only that server calls registered read-only analytics tools against SQLite. The dashboard can display business analytics independently of initializing an agent.
Grounded analytics request
- User question
- LLM agent
- MCP tool selection
- Read-only SQLite analytics
- Grounded response
Implemented features
- Natural-language business queries.
- Sales summaries, top-product analysis, and low-stock detection.
- Top-customer analysis and customer order history.
- Read-only analytics tools exposed through a custom FastMCP server.
- Offline evaluation with 27 repeatable database-grounded test cases.
Engineering decisions
- 01Kept business analytics behind a purpose-built MCP server instead of exposing unrestricted database access to the agent.
- 02Registered read-only tools for a bounded set of analytics queries.
- 03Made provider and model selection explicit rather than silently switching providers or models.
- 04Kept offline evaluation independent from live LLM calls; live evaluation is opt-in.
Evaluation / results
The repository documents 27 repeatable, database-grounded evaluation cases. Offline tests use mocked providers; live evaluation is opt-in.
- The included shop data is fictional and synthetic; it does not represent a real client or business.
Technology stack
- Python
- FastMCP / MCP
- SQLite
- Streamlit
- Ollama
- Gemini
- OpenAI