home / mcp / rentcast mcp server
Provides an MCP server that connects Claude to the RentCast API to access property data, valuations, and market statistics.
Configuration
View docs{
"mcpServers": {
"robcerda-rentcast-mcp-server": {
"command": "rentcast-mcp",
"args": [],
"env": {
"RENTCAST_API_KEY": "YOUR_API_KEY"
}
}
}
}You can harness the RentCast MCP Server to access property data, valuations, and market statistics from the RentCast API through an MCP-enabled client. This server bridges Claude with RentCast, enabling you to query property details, estimates, and market trends in a streamlined, scriptable way.
You will configure an MCP client to connect to the RentCast MCP Server and then issue queries that map to RentCast data endpoints. Use the available tools to fetch detailed property data, valuations, rent estimates, and market statistics for ZIP code areas. You can also retrieve active property listings in a ZIP code and review market trends over time.
Key tools you can use:
Common usage patterns include querying market statistics for a ZIP code, listing properties in a ZIP code, and fetching valuations or property details for property IDs you are researching. When you interact with Claude or your MCP client, you will call these tools with the appropriate parameters provided by your workflow.
# Prerequisites
- Python 3.12 or higher
- MCP Python SDK
- httpx
- python-dotenv
# Optional tools for local development
- uv (recommended) to manage environments and run MCP locallyInstall the runtime and dependencies as described below to set up the RentCast MCP Server locally. Follow these steps in order to have a working server you can connect to from an MCP client.
Step 1: Install uv (recommended) to manage the local runtime and virtual environments.
curl -LsSf https://astral.sh/uv/install.sh | shStep 2: Clone the RentCast MCP Server repository and enter the project directory.
git clone https://github.com/yourusername/rentcast-mcp-server.git
cd rentcast-mcp-serverStep 3: Create and activate a virtual environment.
# Create virtual environment
uv venv
# Activate virtual environment
# macOS/Linux:
source .venv/bin/activate
# Windows:
.venv\Scripts\activateStep 4: Install dependencies.
# Option 1: Using uv (recommended)
uv sync
# Option 2: Using pip with requirements.txt
pip install -r requirements.txt
# Option 3: Install as editable package
uv pip install -e .Step 5: Set up environment variables. Create a .env file in the project root with your RentCast API key.
RENTCAST_API_KEY=your_api_key_hereIf you plan to use the Claude Desktop integration, install the MCP CLI globally and configure Claude to run the RentCast MCP Server from your system path.
uv tool install "mcp[cli]"{
"mcpServers": {
"RentCast": {
"command": "/Users/<USERNAME>/.local/share/uv/tools/mcp/bin/mcp",
"args": ["run", "/full/path/to/rentcast-mcp-server/src/rentcast_mcp_server/server.py"]
}
}
}You can start the server in development or testing environments using the provided commands.
rentcast-mcp
```
```
uv run python src/rentcast_mcp_server/server.pyIf you prefer using the MCP CLI to run the server, you can execute the following:
mcp run src/rentcast_mcp_server/server.pyFetches detailed data for a specific property by ID, returning attributes such as address, size, features, and recent updates.
Returns property value estimates based on RentCast data and market factors.
Provides rent estimates for a property, useful for investment analysis and pricing.
Retrieves market statistics for a ZIP code area, including trends, averages, and medians.
Lists active property listings within a ZIP code area.