mcp-propertium-server
MCP Propertium Server is a RestAPI + MCP server designed for handling OSM and Propertium data.
MCP Propertium Server
RestAPI + MCP server for OSM and Propertium data.
Features
- OpenAI integration for text processing and PDF analysis
- SQLAlchemy + Pydantic for database models and validation
- PostgreSQL with PostGIS for spatial data storage
- Planet Polygons API for geographic data
Getting Started
Prerequisites
- Docker and Docker Compose
- Python 3.12+
Installation
- Clone the repository
- Run with Docker Compose:
docker-compose up -d
Development Setup
# Install dependencies
uv sync
source .venv/bin/activate
uv run fastapi dev --app propertium.main:app ./src/propertium/main.py
API Endpoints
Planet Polygons
GET /planet-polygons/
- Get all planet polygons (paginated)GET /planet-polygons/{osm_id}
- Get a specific planet polygon by OSM IDPOST /planet-polygons/
- Create a new planet polygon
OpenAI Processing
POST /openai/pdf-to-text
- Convert PDF to text using OpenAIPOST /openai/text
- Process text with OpenAI
Database Schema
The application uses SQLAlchemy with PostgreSQL and PostGIS for spatial data. The main table is fct_planet_polygons
which stores geographic polygon data with the following fields:
osm_id
- Primary key, OSM IDadmin_level
- Administrative levelboundary
- Boundary typename
- Name of the polygonz_order
- Z-order for renderingway_area
- Area of the polygonway
- Geometry data (PostGIS)tags
- JSON map of tagscountry
- Country codeavr_rent_price
- Average rent priceavr_rent_price_per_m
- Average rent price per square meteravr_sale_price
- Average sale priceavr_sale_price_per_m
- Average sale price per square meteris_city_for_search
- Flag for search functionalityname_en
- English namecode
- Codealpha2
- Alpha-2 codeborder_type
- Border type
Example Requests
Create a Planet Polygon
curl -X POST \
http://localhost:8000/planet-polygons/ \
-H "Content-Type: application/json" \
-d '{
"osm_id": 123456789,
"admin_level": "8",
"boundary": "administrative",
"name": "Example City",
"z_order": 0,
"way_area": 1234.56,
"tags": {"place": "city", "population": "100000"},
"country": "US"
}'
Related MCP Servers
View all research_and_data servers →exa-mcp-server
by exa-labs
A Model Context Protocol (MCP) server allows AI assistants to use the Exa AI Search API for real-time web searches in a secure manner.
Sequential Thinking
by modelcontextprotocol
An MCP server implementation that provides a tool for dynamic and reflective problem-solving through a structured thinking process.
arxiv-mcp-server
by blazickjp
The ArXiv MCP Server provides a bridge between AI assistants and arXiv's research repository through the Model Context Protocol (MCP).
sitemcp
by ryoppippi
SiteMCP is a tool that fetches an entire site and uses it as a Model Context Protocol (MCP) Server.
mcp-compass
by liuyoshio
MCP Compass is a discovery and recommendation service for exploring Model Context Protocol servers using natural language queries.
Sequential Thinking MCP Server
by modelcontextprotocol
An MCP server implementation that provides a tool for dynamic and reflective problem-solving through a structured thinking process.
firecrawl-mcp-server
by mendableai
Firecrawl MCP Server is a Model Context Protocol server implementation that integrates with Firecrawl for web scraping capabilities.