loading…
Search for a command to run...
loading…
Exposes ATTOM's real estate API as MCP tools, enabling property details, valuations, assessments, sales, and area data via natural language.
Exposes ATTOM's real estate API as MCP tools, enabling property details, valuations, assessments, sales, and area data via natural language.
An MCP server for the ATTOM API, providing real estate data via the MCP protocol. This server acts as middleware, exposing the ATTOM API endpoints as MCP tools that can be used by AI agents.
The easiest way to install and run the ATTOM API MCP Server is via uvx:
uvx mcp-server-attom --help
This will download and run the tool directly without requiring a permanent installation.
To install it permanently:
uv tool install mcp-server-attom
git clone https://github.com/nkbud/mcp-server-attom.git
cd mcp-server-attom
uv sync --locked --all-extras --dev
.env file with your ATTOM API key:cp .env.example .env
# Edit .env and add your ATTOM API key
For detailed instructions on using this server with various MCP clients (Claude Desktop, mcp-inspector, mcp-cli) and stdio communication, see the Client Integration Guide.
Quick Start Examples:
# With Claude Desktop - add to configuration file
{
"mcpServers": {
"attom-api": {
"command": "uvx",
"args": ["mcp-server-attom"],
"env": {"ATTOM_API_KEY": "your_api_key_here"}
}
}
}
# With MCP Inspector
npx @modelcontextprotocol/inspector uvx mcp-server-attom
# With MCP CLI
mcp list tools uvx mcp-server-attom
mcp call uvx mcp-server-attom property_detail '{"attom_id": "145423726"}'
# Direct stdio communication
export ATTOM_API_KEY=your_api_key_here
uvx mcp-server-attom
Start the server using the mcp-server-attom command:
# If installed via uv tool install
mcp-server-attom --port 8000 --host 0.0.0.0
# Or run directly via uvx
uvx mcp-server-attom --port 8000 --host 0.0.0.0
Available command-line options:
--host: Host to bind the server to (default: 0.0.0.0)--port: Port to bind the server to (default: 8000)--log-level: Logging level (debug, info, warning, error)--reload: Enable auto-reload on code changesStart the server during development:
python -m src.server
This will start the server using stdio transport for MCP communication.
The server exposes MCP tools for various ATTOM API endpoints. Here's an example of using the property_detail tool:
await mcp.tools.property_detail(
attom_id="145423726" # OR
# address="123 Main St, New York, NY 10001" # OR
# address1="123 Main St", address2="New York, NY 10001" # OR
# fips="36061", apn="12345"
)
The server can be configured using the following environment variables:
| Variable | Description | Required | Default |
|---|---|---|---|
| ATTOM_API_KEY | Your ATTOM API key | Yes | - |
| ATTOM_HOST_URL | Base URL for the ATTOM API | No | https://api.gateway.attomdata.com |
| ATTOM_PROP_API_PREFIX | Prefix for property API endpoints | No | /propertyapi/v1.0.0 |
| ATTOM_DLP_V2_PREFIX | Prefix for DLP v2 API endpoints | No | /property/v2 |
| ATTOM_DLP_V3_PREFIX | Prefix for DLP v3 API endpoints | No | /property/v3 |
| LOG_LEVEL | Logging level (DEBUG, INFO, WARNING, ERROR) | No | INFO |
| LOG_FORMAT | Log format (json or console) | No | json |
This MCP server provides complete 1:1 coverage of ATTOM's Data API with 55+ endpoints across all major categories. For detailed API coverage mapping, see ATTOM_API_COVERAGE.md.
All property-related tools support multiple identification methods:
Area and location tools support geographic identifiers:
uv run pytest
uv run ruff check .
uv run black .
uv run isort .
To build and publish the package to PyPI:
uv:pip install -U uv
Set up a PyPI token:
mcp-server-attom projectBuild the package:
uv build --no-sources
uv publish --token YOUR_PYPI_TOKEN
Alternatively, you can store your token in a .pypirc file or as an environment variable:
export PYPI_TOKEN=YOUR_PYPI_TOKEN
uv publish
MIT
For issues with this MCP server, please open an issue on the GitHub repository.
For issues with the ATTOM API itself, please contact ATTOM Data Solutions support.
Выполни в терминале:
claude mcp add mcp-server-attom -- npx Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории development