Supports Docker containerization for production deployment of the real estate data MCP server
Uses .ENV files for secure configuration management of API keys and server settings
Built using FastAPI framework to provide the MCP server endpoints and HTTP API interface for real estate data access
Implemented in Python to provide MCP-compliant real estate data integration with intelligent API optimization features
🏠 Rentcast MCP Server
A Model Context Protocol (MCP) server that provides access to Rentcast Real Estate API data through a standardized interface. This server enables AI assistants and applications to retrieve comprehensive real estate information including property details, market analysis, rent estimates, and property valuations.
✨ Features
- 🔍 Property Search: Search properties with filters (city, state, bedrooms, bathrooms, etc.)
- 🎲 Random Properties: Get random properties for market analysis
- 📊 Market Analysis: Comprehensive market statistics and trends
- 💰 Property Valuation: Automated property value estimates with comparables
- 🏠 Rent Estimates: Long-term rent estimates with comparable properties
- 🏘️ Sale Listings: Current properties for sale
- 🏘️ Rental Listings: Current properties for rent
- 🏠 Property Details: Detailed property information and parameters
🚀 Quick Start
Prerequisites
- Node.js 18+
- Rentcast API key (Get one here)
Installation
Using with MCP Inspector
🛠️ Available Tools
1. search_properties
Search for properties with comprehensive information.
Parameters:
city
(optional): City name (e.g., "Austin", "New York")state
(optional): State abbreviation (e.g., "TX", "CA")zipCode
(optional): ZIP code (e.g., "78705")bedrooms
(optional): Number of bedrooms (1-10)bathrooms
(optional): Number of bathrooms (1-10)propertyType
(optional): Property type (e.g., "Single Family", "Condo")limit
(optional): Maximum results (default: 15, max: 50)
Example:
2. get_random_properties
Get random properties for market analysis.
Parameters:
city
(optional): City namestate
(optional): State abbreviationzipCode
(optional): ZIP codelimit
(optional): Number of properties (default: 10, max: 50)
3. analyze_market
Get comprehensive market statistics and trends.
Parameters:
zipCode
(optional): ZIP code for analysiscity
(optional): City namestate
(optional): State abbreviationdataType
(optional): "All", "Sale", or "Rental" (default: "All")
4. get_property_value
Get automated property value estimates.
Required (one of):
address
: Full property addresslatitude
+longitude
: GPS coordinatespropertyId
: Unique property identifier
Optional:
propertyType
: Property typebedrooms
: Number of bedroomsbathrooms
: Number of bathroomssquareFootage
: Property size in sq ft
Example:
5. get_rent_estimates
Get long-term rent estimates with comparable properties.
Required (one of):
address
: Full property addresslatitude
+longitude
: GPS coordinatespropertyId
: Unique property identifier
Optional:
propertyType
: Property typebedrooms
: Number of bedroomsbathrooms
: Number of bathroomssquareFootage
: Property size in sq ft
6. get_sale_listings
Get current properties for sale.
Parameters:
city
(optional): City namestate
(optional): State abbreviationzipCode
(optional): ZIP codelimit
(optional): Maximum results (default: 15, max: 50)
7. get_rental_listings
Get current properties for rent.
Parameters:
city
(optional): City namestate
(optional): State abbreviationzipCode
(optional): ZIP codelimit
(optional): Maximum results (default: 15, max: 50)
8. get_property_details
Get detailed property information.
Parameters:
id
(required): Property or listing ID
9. get_server_status
Get server status and API usage information.
Parameters: None
🔧 Configuration
Environment Variables
Variable | Description | Default | Required |
---|---|---|---|
RENTCAST_API_KEY | Your Rentcast API key | - | ✅ |
RENTCAST_BASE_URL | Rentcast API base URL | https://api.rentcast.io/v1 | ❌ |
MAX_API_CALLS_PER_SESSION | Maximum API calls per session | 40 | ❌ |
TIMEOUT_SECONDS | API call timeout | 30 | ❌ |
ENABLE_RATE_LIMITING | Enable rate limiting | true | ❌ |
RATE_LIMIT_PER_MINUTE | Rate limit per minute | 60 | ❌ |
DEBUG | Enable debug mode | false | ❌ |
LOG_LEVEL | Log level | INFO | ❌ |
API Limits
- Free Tier: 45 API calls per month
- Default Session Limit: 40 calls per session
- Rate Limiting: 60 calls per minute (configurable)
🏗️ Project Structure
🚀 Development
Scripts
Building
Debug Mode
The server includes comprehensive console logging for debugging:
- Input Parameters: Logs all parameters received by tools
- API Responses: Logs API call results and data samples
- Error Handling: Detailed error logging with context
- Performance: API call counts and rate limiting information
🔍 Debugging
Console Logs
Each tool provides detailed logging:
Common Issues
- Missing API Key: Ensure
RENTCAST_API_KEY
is set in.env
- API Limits: Monitor remaining API calls with
get_server_status
- Rate Limiting: Wait between API calls if rate limited
- Invalid Parameters: Check parameter validation in console logs
📊 API Usage Optimization
Best Practices
- Batch Requests: Use higher limits when possible to reduce API calls
- Caching: Implement caching for frequently requested data
- Parameter Validation: Provide accurate parameters for better results
- Error Handling: Implement proper error handling for failed requests
Rate Limiting
- Default: 60 calls per minute
- Configurable via
RATE_LIMIT_PER_MINUTE
- Automatic delays between calls when enabled
🤝 Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests if applicable
- Submit a pull request
📝 License
This project is licensed under the MIT License - see the LICENSE file for details.
🔗 Links
🆘 Support
For issues and questions:
- Check the console logs for debugging information
- Verify your API key and configuration
- Check Rentcast API status and limits
- Open an issue in the repository
Built with ❤️ for the MCP community
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Enables intelligent property data analysis through the Rentcast API with optimized API call allocation. Provides comprehensive real estate market insights, property valuations, rental estimates, and listings data with built-in rate limiting and fallback mechanisms.
Related MCP Servers
- AsecurityAlicenseAqualityProvides comprehensive access to Roam Research's API functionality. This server enables AI assistants like Claude to interact with your Roam Research graph through a standardized interface.Last updated -1562MIT License
- AsecurityAlicenseAqualityEnables interaction with the PolyMarket API to fetch prediction market data such as market information, prices, and historical data, with robust error handling and rate limit management.Last updated -440MIT License
- AsecurityFlicenseAqualityProvides access to RateSpot.io mortgage rate APIs, enabling AI assistants to fetch real-time mortgage rates, compare loan products, calculate payments, and access comprehensive lending information.Last updated -7
- -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 -10ISC License