Powers an AI-powered WhatsApp bot that generates rental agreements and receipts on the fly for property rental management
RentSmart MCP
This repository contains a minimal Multi‑Channel Plugin (MCP) service for RentSmart, an AI‑powered WhatsApp bot that generates rental agreements and receipts on the fly.
Features
- /validate – Performs a simple bearer token check and returns a dummy phone number.
Update the token inapp/main.py
to secure your deployment. - /tool/generate_agreement – Accepts rental agreement details, fills a text template,
converts it into a PDF and serves it back via a public link under
/files/agreements
. - /tool/generate_rent_receipt – Creates a PDF rent receipt with the specified
particulars and exposes it under
/files/receipts
. - /tool/stamp_duty_info – Returns state‑specific stamp duty information for quick reference. A default set of values has been provided for demonstration and can easily be expanded to include all Indian states.
- /health – A simple heartbeat endpoint returning
{"status":"ok"}
.
Directory Structure
Quick Start
Navigate to http://localhost:8000/health to verify the server is running.
Deployment
Deploy on any platform that supports FastAPI: Render, Railway, Vercel or your own server. Make sure to expose the service over HTTPS for compatibility with Puch AI.
Puch AI Integration
After deployment, connect your MCP service to Puch AI using the /mcp connect
command
in your WhatsApp chat. Replace the URL and token below with your deployment:
On successful connection you’ll see the available tools (generate_agreement
,
generate_rent_receipt
and stamp_duty_info
).
Customisation
- Templates – Edit the files in
app/templates
to customise the layout and wording of your generated agreements and receipts. Placeholders in curly braces (e.g.{landlord}
,{rent}
) will be replaced with the values supplied in the JSON request. - Stamp Duty Data – Modify the
STAMP_DUTY_DATA
dictionary inapp/main.py
to reflect accurate state‑wise stamp duty charges and links. This example contains a few states for illustration. - Token Validation – Change the
VALID_TOKEN
constant inapp/main.py
to enforce your own bearer token. In production you should implement a proper authentication mechanism.
License
This starter is provided as‑is for hackathon or educational use. Feel free to modify and extend it to suit your needs.
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
Enables users to generate rental agreements and receipts as PDFs through an AI-powered WhatsApp bot. Provides stamp duty information lookup and handles rental document creation with customizable templates.
Related MCP Servers
- AsecurityAlicenseAqualityIntegrate AI models with Freshdesk to automate support operations. Create, update, and manage support tickets seamlessly through the Freshdesk API. Enhance your customer support experience with automated ticket management and AI-driven interactions.Last updated -2519PythonMIT License
- AsecurityFlicenseAqualityEnables AI systems to analyze documents and extract form data through Azure Form Recognizer/Document Intelligence, supporting various document types including receipts, invoices, and ID documents.Last updated -26682TypeScript
- AsecurityAlicenseAqualityEnables AI assistants to interact with WordPress sites through REST APIs, allowing programmatic management of posts, users, comments, categories, and tags with secure authentication.Last updated -2939JavaScriptMIT License
- -securityAlicense-qualityAn MCP server that enables interaction with the Daft.ie API for searching rental properties and retrieving detailed information about specific rental listings.Last updated -10TypeScriptISC License