
receptopalak/postgis-mcp
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
Postgis MCP 서버
개요
이 프로젝트는 Model Context Protocol (MCP)을 사용하여 PostGIS 데이터베이스 연결을 제공하는 서버 응용 프로그램입니다. - TypeScript 개발 - Model Context Protocol (MCP) 통합 - PostGIS 데이터베이스 지원 - 개발 및 생산 환경 구성 - Hot-reload 지원 - Node.js (v14 이상) - PostgreSQL (PostGIS 확장) - npm 또는 원사 레거시 단일 데이터베이스 DB HOST / DB NAME / DB USER / DB PASSWORD 변수는 여전히 fallback으로 지원됩니다. 4. 선택: 자연적인 언어 테이블 선택을 개량하기 위하여 Domain-aliases.json에 있는 테이블/domain 별명을 주문을 받아서 만드십시오. MCP 서버의 다음 예제 구성을 사용할 수 있습니다. - @modelcontextprotocol/sdk: ^1.12.1 - dotenv: ^16.5.0 - pg: ^8.16.0 - zod: ^3.25.64 1. 포크 이 저장소 2. 기능 지점 만들기 (git checkout -b feature/amazing-feature) 3. 변경 사항 (git commit -m 'feat : 놀라운 기능을 추가하십시오) 4. 분지 (git push Origin feature/amazing-feature)에 푸시 5.
개요(AI 번역)
한국어 |
PostGIS MCP 서버
이 프로젝트는 Model Context Protocol (MCP)을 사용하여 PostGIS 데이터베이스 연결을 제공하는 서버 응용 프로그램입니다.
♨ 특징
- TypeScript 개발
- 모형 Context 의정서 (MCP) 통합
- PostGIS 데이터베이스 지원
- 개발 및 생산 환경 설정
- 핫로드 지원
요구사항
- Node.js (v14 이상)
- PostgreSQL (PostGIS 확장)
- npm 또는 원사
672️ 설치
-
Clone 프로젝트:
-
의존성 설치:
-
.env파일 만들기:
Legacy Single-database DB_HOST / DB_NAME] / DB_USER] / DB_PASSWORD] 변수는 여전히 fallback으로 지원됩니다.
- 선택: 자연적인 언어 테이블 선택을 개량하기 위하여
domain-aliases.json에 있는 테이블/domain 별명을 주문을 받아서 만드십시오.
♨ 사용
개발 모드
생산 형태
P 구성
MCP 서버의 다음 예제 구성을 사용할 수 있습니다.
☸ 종점
- @modelcontextprotocol/sdk: ^1.12.1
- dotenv: ^16.5.0
- pg : ^8.16.0
- 조드: ^3.25.64
# # # 기여
- 포크 이 저장소
- 기능 지점 만들기 (
git checkout -b feature/amazing-feature) - 명세.
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
원문 README의 일부입니다. 원문 보기.
PostGIS MCP Server
PostGIS MCP Server
This project is a server application that provides PostGIS database connection using Model Context Protocol (MCP).
🚀 Features
- Developed with TypeScript
- Model Context Protocol (MCP) integration
- PostGIS database support
- Configuration for development and production environments
- Hot-reload support
📋 Requirements
- Node.js (v14 or higher)
- PostgreSQL (with PostGIS extension)
- npm or yarn
🛠️ Installation
- Clone the project:
git clone https://github.com/receptopalak/postgis-mcp.git
cd postgis-mcp
- Install dependencies:
npm install
- Create
.envfile:
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
Legacy single-database DB_HOST / DB_NAME / DB_USER / DB_PASSWORD variables are still supported as a fallback.
- Optional: customize table/domain aliases in
domain-aliases.jsonto improve natural-language table selection.
🚀 Usage
Development Mode
npm run dev
Production Mode
npm run build
npm start
🔧 MCP Configuration
You can use the following example configuration for MCP server:
{
"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"
}
}
}
}
📦 Dependencies
- @modelcontextprotocol/sdk: ^1.12.1
- dotenv: ^16.5.0
- pg: ^8.16.0
- zod: ^3.25.64
🤝 Contributing
- Fork this repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'feat: Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
📝 License
This project is licensed under the ISC License. See the LICENSE file for more information.
📧 Contact
Project Owner - @receptopalak
Project Link: https://github.com/receptopalak/postgis-mcp
PostGIS MCP Server
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-mcp
- Bağımlılıkları yükleyin:
npm install
설치
npx tsx server.ts설정
{
"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"
}
}
}
}