Business MCP Server

Business MCP Server

Enables AI to query a business database for customers, orders, and revenue using natural language through safe, well-defined tools.

Category
Visit Server

README

πŸ”Œ Business MCP Server

An MCP (Model Context Protocol) server that connects Claude β€” or any MCP-compatible AI client β€” to a real business database. It lets the AI query customers, orders, and revenue using natural language, by exposing safe, well-defined tools over the database.

Built as a hands-on demonstration of Python, APIs, and the Model Context Protocol β€” the emerging standard for connecting LLMs to real-world systems.


🧠 What is MCP?

Large Language Models only know what they were trained on β€” they can't read your database, CRM, or spreadsheet. MCP is an open standard (introduced by Anthropic) that acts like a universal adapter between an AI model and external systems.

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”      β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”      β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ Claude  β”‚ ───► β”‚  MCP Server  β”‚ ───► β”‚  SQLite (DB)   β”‚
β”‚ (client)β”‚ ◄─── β”‚  (this repo) β”‚ ◄─── β”‚  customers,    β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜      β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜      β”‚  orders        β”‚
                                       β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

The MCP server exposes tools (actions). The AI decides when and how to call them β€” you simply grant the capability.


πŸ› οΈ Tools exposed

Tool Description
list_customers() Returns all customers (name, email, city, join date).
search_customers(keyword) Finds customers by name or city.
get_customer_orders(customer_id) Returns all orders for a given customer.
revenue_summary() Total revenue from completed orders + order counts.

All database access goes through a single helper that uses parameterized queries (? placeholders) to prevent SQL injection.


πŸ“¦ Tech stack

  • Python 3.13
  • MCP Python SDK (mcp[cli]) β€” FastMCP
  • SQLite (standard library sqlite3) β€” the business database

πŸš€ Getting started

# 1. Clone and enter the project
git clone https://github.com/bke1302/business-mcp-server.git
cd business-mcp-server

# 2. Create and activate a virtual environment
python -m venv venv
venv\Scripts\activate        # Windows
# source venv/bin/activate   # macOS / Linux

# 3. Install dependencies
pip install -r requirements.txt

# 4. Create the sample database
python init_db.py

Connect to Claude Code

claude mcp add business-db -- python /full/path/to/server.py

Then ask Claude naturally:

"How much revenue have we made?" "Show me Maya's orders." "Which customers are from Tel Aviv?"

Claude will call the right tool and answer from your live data.


πŸ“ Project structure

business-mcp-server/
β”œβ”€β”€ server.py          # The MCP server β€” defines and serves the tools
β”œβ”€β”€ init_db.py         # Creates and seeds the SQLite database
β”œβ”€β”€ requirements.txt   # Python dependencies
β”œβ”€β”€ .gitignore
└── README.md

πŸ“š What this project demonstrates

  • Building an MCP server from scratch with the official Python SDK
  • Designing clear, well-documented tools an AI can reason about
  • Safe database access with parameterized SQL queries
  • Clean, portable code (absolute paths, isolated virtual environment)

πŸ—ΊοΈ Roadmap

  • [ ] Add Google Sheets as an alternative data source
  • [ ] Add write tools (create / update orders)
  • [ ] Add automated tests

Built while transitioning from operations management into AI engineering β€” closing the gap from low-code automation to real Python & technical architecture.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured