belle-mcp-server
A reference Model Context Protocol (MCP) server that exposes real Belle Realty property-management data — properties, tenants, leases, maintenance tickets, rent roll — as tools that Claude Desktop, Cursor, or any MCP-compatible client can call directly.
README
belle-mcp-server
A reference Model Context Protocol (MCP) server that exposes real Belle Realty property-management data — properties, tenants, leases, maintenance tickets, rent roll — as tools that Claude Desktop, Cursor, or any MCP-compatible client can call directly.
Six tools. Five are strictly read-only. One is a HITL-gated propose-write. That ratio is intentional and is the whole point of this repo.
Part of the AI Fluency Program — Level 2.
Why this exists
Most "AI + your data" demos give the model unrestricted database access. That is a footgun.
The Model Context Protocol is designed to expose a small, curated surface area with per-tool auth, rate limits, and audit — the same discipline you'd apply to a public REST API. This repo shows what that looks like for a real domain (a Louisiana shopping center) with a real Postgres schema, a working seed, and a single HITL-gated write path.
If you understand this repo, you can build one for any business you run.
What you get
| Tool | What it does | Write? |
|---|---|---|
list_properties |
Filter portfolio by type/city. | no |
list_tenants |
List tenants, optionally scoped to one property. | no |
get_lease |
Fetch a lease by lease_id/suite_id/tenant_id. | no |
search_maintenance_tickets |
Multi-filter search across tickets. | no |
get_rent_roll |
Compute a full rent roll snapshot for a property. | no |
draft_maintenance_response |
Save a proposed tenant reply as a DRAFT (approved=false). | HITL-gated write |
Every call is rate-limited (60/min default) and audit-logged to mcp_audit_log.
Quick start
# 1. Clone + install
git clone https://github.com/OrangeOnyx/belle-mcp-server.git
cd belle-mcp-server
npm install
# 2. Configure
cp .env.example .env
# Paste your Supabase URL + service-role key
# 3. Set up the schema (Supabase project)
# Copy supabase/migrations/0001_init.sql into the SQL editor and run.
# 4. Seed demo data
npm run db:seed
# 5. Build + inspect
npm run build
npm run inspect
The MCP Inspector opens a UI where you can list tools, call them, and see raw responses.
Wire it into Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or the equivalent on Windows/Linux:
{
"mcpServers": {
"belle-realty": {
"command": "node",
"args": ["/absolute/path/to/belle-mcp-server/dist/index.js"],
"env": {
"SUPABASE_URL": "https://your-project.supabase.co",
"SUPABASE_SERVICE_ROLE_KEY": "your-service-role-key"
}
}
}
}
Restart Claude Desktop. You'll now see a belle-realty toolset. Try:
"What suites are currently occupied at On The Boulevard, and how much monthly rent are they producing?"
Claude will call get_rent_roll and answer from the returned data.
The HITL write pattern
The one write tool (draft_maintenance_response) illustrates a general pattern you should copy for any AI-facing service:
- AI proposes a change — here, a reply to a tenant maintenance ticket.
- The server saves it as
approved=false. - Nothing is delivered, sent, or applied until a human approves it out-of-band (typically in the property manager's admin UI).
- The MCP surface intentionally does not expose an approve tool. Approval is a human-only operation.
This means an over-eager or prompt-injected agent cannot silently push text to a tenant. It can propose, and it can propose loudly. It cannot ship.
For a longer walkthrough, see docs/hitl-pattern.md.
Personal-use walkthrough
You're an individual landlord with 3 rental houses or one small commercial building.
- Run the migration on your Supabase project.
- Seed with your own data (edit
supabase/seed.ts, or insert rows manually). - Point Claude Desktop at the server.
- Ask questions like "which tenant has a lease expiring in the next 90 days?" or "draft a response to the ticket about the water heater."
You've now built an AI-native tenant operations layer that speaks your data. It cost you an evening.
Company-use walkthrough
You run Belle Realty (or an equivalent management company). Multiple staff need Claude access to portfolio data without seeing raw SQL, and without any risk of accidental writes.
- Deploy this server as a persistent process (Railway, Fly, or a Docker host).
- Set
MCP_TRANSPORT=httpandMCP_HTTP_TOKEN=<shared-secret>. - Each teammate configures Claude Desktop or Cursor with the URL + token.
- Read-only tools give everyone leverage. The single write tool protects the tenant relationship.
mcp_audit_loggives you an after-the-fact record of every AI action.
Architecture
graph LR
A[Claude Desktop / Cursor] -->|MCP stdio or HTTP| B[belle-mcp-server]
B --> C[RateLimiter]
B --> D[Zod validation]
B --> E[Supabase Postgres]
B --> F[mcp_audit_log]
E --> G[(properties, tenants, leases, tickets)]
Details in docs/architecture.md.
Extending it
Add a new tool in 4 steps:
- Add a Zod schema for input in
src/schemas/domain.ts(if the data shape is new). - Create
src/tools/<name>.tswith aninputschema, a handler, and a JSON-Schema definition. - Register it in
src/tools/index.ts. - Add tests in
tests/.
Every write tool should follow the propose-write pattern in draft_maintenance_response.
Deploy
Railway (recommended for HTTP transport)
railway up
railway.json builds the server and runs node dist/index.js. Set env vars in the Railway dashboard.
Local (stdio only)
Just build and point your MCP client at dist/index.js. No hosting needed.
Development
npm run dev # tsx watch mode
npm run test # vitest
npm run build # tsc → dist/
npm run inspect # MCP Inspector UI
Related repos
lease-abstractor— extract a structured abstraction from a lease PDF/DOCXsupport-triage-agent— same HITL pattern applied to support messagesdiligence-agent— RAG-based diligence over a document folderai-fluency-program— parent curriculum
License
MIT — see LICENSE.
Not legal, tax, or property-management advice. Do not use for compliance-critical decisions without a licensed professional in the loop.
Recommended Servers
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.
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.
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.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
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.
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.
Neon Database
MCP server for interacting with Neon Management API and databases
E2B
Using MCP to run code via e2b.
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.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.