Postgis Nearest
Finds the closest geospatial feature in a PostGIS database based on your coordinates – useful for proximity searches and location-based applications.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add postgis-nearest npx -- -y @trustedskills/postgis-nearest
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"postgis-nearest": {
"command": "npx",
"args": [
"-y",
"@trustedskills/postgis-nearest"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill allows you to find the nearest geographic features within a PostGIS database. It leverages spatial queries to identify points, lines, or polygons closest to a given location. You can specify search radii and other parameters to refine your results.
When to use it
- Locating nearby businesses: Find the closest coffee shops, restaurants, or stores based on a user's current location.
- Emergency response routing: Determine the nearest hospital or fire station for rapid assistance.
- Environmental monitoring: Identify the closest weather stations or pollution sensors to a specific area.
- Asset management: Locate the nearest available maintenance vehicles or equipment.
Key capabilities
- Spatial queries within PostGIS databases
- Nearest feature identification based on distance
- Support for various geometric types (points, lines, polygons)
- Configurable search radius
Example prompts
- "Find the nearest hospital to 34.0522° N, 118.2437° W."
- "What are the five closest gas stations within a 5-mile radius of my current location?"
- "Locate the nearest park with playground equipment."
Tips & gotchas
- Requires access to a PostGIS database and appropriate credentials.
- The accuracy of results depends on the quality and completeness of the data in the PostGIS database.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.