Postgresql Extensions
Leverage PostgreSQL extensions like PostGIS and TimescaleDB via this plugin to enhance data analysis and functionality.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add postgresql-extensions npx -- -y @trustedskills/postgresql-extensions
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"postgresql-extensions": {
"command": "npx",
"args": [
"-y",
"@trustedskills/postgresql-extensions"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill allows AI agents to interact with and utilize PostgreSQL extensions. It enables querying, creating, and managing database objects defined by these extensions, expanding the capabilities of standard SQL operations. The agent can leverage specialized functions and data types provided by installed extensions for more complex tasks.
When to use it
- Geospatial analysis: Use PostGIS extensions to perform location-based queries and calculations on geographic data.
- Full-text search: Employ extensions like
pg_trgmortsvectorto implement advanced text searching capabilities within the database. - Data type enhancements: Utilize custom data types provided by extensions for more efficient storage and processing of specific data formats (e.g., JSONB).
- Procedural programming: Leverage PL/pgSQL extensions to create stored procedures and functions for automating complex database operations.
Key capabilities
- Querying PostgreSQL databases with installed extensions.
- Creating and managing objects defined by PostgreSQL extensions.
- Utilizing specialized data types provided by extensions.
- Executing custom functions from available extensions.
Example prompts
- "Find all restaurants within 1 mile of the given coordinates using PostGIS."
- "Create a full-text search index on the 'description' column using
tsvector." - "Execute the stored procedure
calculate_monthly_salesin the database."
Tips & gotchas
- Ensure the necessary PostgreSQL extensions are installed within the target database before utilizing this skill.
- The agent requires appropriate permissions to interact with and modify the database schema using the specified extensions.
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.