RentSmart MCP

RentSmart MCP

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.

Category
Visit Server

README

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 in app/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

rentsmart_mcp/
├── app/
│   ├── __init__.py
│   ├── main.py             # FastAPI application
│   └── templates/
│       ├── agreement_template.txt
│       └── receipt_template.txt
├── files/                  # Generated PDFs will be saved here
├── requirements.txt        # Python dependencies
└── README.md

Quick Start

python -m venv .venv
source .venv/bin/activate  # or .venv\Scripts\activate on Windows
pip install -r requirements.txt
uvicorn app.main:app --reload --port 8000

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:

/mcp connect https://YOUR-DEPLOYED-URL your_test_token

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 in app/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 in app/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.

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