PostGIS MCP Server
PostGIS MCPサーバー
PostGIS MCPサーバー
このプロジェクトは、Model Context Protocol (MCP) を使用してPostGISデータベース接続を提供するサーバーアプリケーションです。
🚀 特徴
TypeScriptで開発
Model Context Protocol (MCP) 統合
PostGISデータベースサポート
開発および本番環境向けの構成
ホットリロードサポート
Related MCP server: GeoServer MCP Server
📋 要件
Node.js (v14以上)
PostgreSQL (PostGIS拡張機能付き)
npm または yarn
🛠️ インストール
プロジェクトをクローンします:
git clone https://github.com/receptopalak/postgis-mcp.git
cd postgis-mcp依存関係をインストールします:
npm install.envファイルを作成します:
NODE_ENV=development
DB_URL_1=postgres://user:password@host:5432/database_one
DB_URL_2=postgres://user:password@host:5432/database_two
DB_URL_3=postgres://user:password@host:5432/database_three従来の単一データベース用 DB_HOST / DB_NAME / DB_USER / DB_PASSWORD 変数もフォールバックとして引き続きサポートされています。
オプション: 自然言語でのテーブル選択を改善するために、
domain-aliases.jsonでテーブル/ドメインのエイリアスをカスタマイズします。
🚀 使用方法
開発モード
npm run dev本番モード
npm run build
npm start🔧 MCP構成
MCPサーバーには以下の構成例を使用できます:
{
"mcpServers": {
"postgis": {
"command": "npx",
"args": ["tsx", "server.ts"],
"env": {
"NODE_ENV": "development",
"DB_URL_1": "postgres://user:pass@host:5432/db_one",
"DB_URL_2": "postgres://user:pass@host:5432/db_two"
}
}
}
}📦 依存関係
@modelcontextprotocol/sdk: ^1.12.1
dotenv: ^16.5.0
pg: ^8.16.0
zod: ^3.25.64
🤝 貢献
このリポジトリをフォークします
フィーチャーブランチを作成します (
git checkout -b feature/amazing-feature)変更をコミットします (
git commit -m 'feat: Add some amazing feature')ブランチにプッシュします (
git push origin feature/amazing-feature)プルリクエストを作成します
📝 ライセンス
このプロジェクトはISCライセンスの下でライセンスされています。詳細については LICENSE ファイルを参照してください。
📧 連絡先
プロジェクトオーナー - @receptopalak
プロジェクトリンク: https://github.com/receptopalak/postgis-mcp
PostGIS MCPサーバー
Bu proje, Model Context Protocol (MCP) kullanarak PostGIS veritabanı bağlantısını sağlayan bir sunucu uygulamasıdır.
🚀 Özellikler
TypeScript ile geliştirilmiş
Model Context Protocol (MCP) entegrasyonu
PostGIS veritabanı desteği
Geliştirme ve üretim ortamları için yapılandırma
Hot-reload desteği
📋 Gereksinimler
Node.js (v14 veya üzeri)
PostgreSQL (PostGIS eklentisi ile)
npm veya yarn
🛠️ Kurulum
Projeyi klonlayın:
git clone https://github.com/receptopalak/postgis-mcp.git
cd postgis-mcpBağımlılıkları yükleyin:
npm install.envdosyası oluşturun:
NODE_ENV=development
DB_URL_1=postgres://user:password@host:5432/database_one
DB_URL_2=postgres://user:password@host:5432/database_two
DB_URL_3=postgres://user:password@host:5432/database_threeEski tek veritabanlı DB_HOST / DB_NAME / DB_USER / DB_PASSWORD değişkenleri de fallback olarak desteklenir.
Opsiyonel: doğal dilde tablo seçimini iyileştirmek için
domain-aliases.jsondosyasını özelleştirin.
🚀 Kullanım
Geliştirme Modu
npm run devÜretim Modu
npm run build
npm start🔧 MCP Yapılandırması
MCP sunucu yapılandırması için aşağıdaki örnek yapılandırmayı kullanabilirsiniz:
{
"mcpServers": {
"postgis": {
"command": "npx",
"args": ["tsx", "server.ts"],
"env": {
"NODE_ENV": "development",
"DB_URL_1": "postgres://user:pass@host:5432/db_one",
"DB_URL_2": "postgres://user:pass@host:5432/db_two"
}
}
}
}📦 Bağımlılıklar
@modelcontextprotocol/sdk: ^1.12.1
dotenv: ^16.5.0
pg: ^8.16.0
zod: ^3.25.64
🤝 Katkıda Bulunma
Bu depoyu fork edin
Yeni bir özellik dalı oluşturun (
git checkout -b feature/amazing-feature)Değişikliklerinizi commit edin (
git commit -m 'feat: Add some amazing feature')Dalınıza push edin (
git push origin feature/amazing-feature)Bir Pull Request oluşturun
📝 Lisans
Bu proje ISC lisansı altında lisanslanmıştır. Daha fazla bilgi için LICENSE dosyasına bakın.
📧 İletişim
Proje Sahibi - @receptopalak
Proje Linki: https://github.com/receptopalak/postgis-mcp
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBqualityBmaintenanceA Model Context Protocol server that enables powerful PostgreSQL database management capabilities including analysis, schema management, data migration, and monitoring through natural language interactions.182,467198AGPL 3.0
- AlicenseAqualityCmaintenanceA Model Context Protocol server that connects Large Language Models to the GeoServer REST API, enabling AI assistants to query and manipulate geospatial data through natural language.987MIT
- Flicense-qualityDmaintenanceA Model Context Protocol server implementation that provides a simple interface to interact with PostgreSQL databases, enabling SQL queries, database operations, and schema management through MCP.
- Flicense-qualityDmaintenanceAn MCP server that transforms natural language questions into SQL, executes queries on PostgreSQL, and returns human-friendly responses, with Redis memory for context.1
Related MCP Connectors
GibsonAI MCP server: manage your databases with natural language
MCP server for managing Prisma Postgres.
MCP server for interacting with the Supabase platform
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/receptopalak/postgis-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server