Ectlocal Connect MCP Server
Enables connection to PostgreSQL databases for EC solution platforms to query and manage e-commerce data including orders, members, and other business information. Provides tools for direct SQL execution, table structure analysis, and specialized e-commerce data retrieval functions.
README
Ectlocal Connect MCP Server
EC 솔루션의 PostgreSQL 데이터베이스에 접속하여 주문, 회원 등 이커머스 데이터를 조회하고 관리할 수 있는 MCP(Model Context Protocol) 서버입니다.
기능
- PostgreSQL 데이터베이스 연결 및 쿼리 실행
- 테이블 구조 및 통계 정보 조회
- 주문 정보 조회 (기본/상세)
- 회원 정보 조회
- 전체 테이블 목록 조회
설치 및 설정
1. 의존성 설치
npm install
2. 환경 변수 설정
.env.example 파일을 복사하여 .env 파일을 생성하고 데이터베이스 비밀번호를 설정합니다:
cp .env.example .env
# .env 파일에서 ECTLOCAL_DB_PASSWORD 설정
3. 빌드
npm run build
사용법
개발 모드
npm run dev
프로덕션 모드
npm start
MCP 도구
1. execute_query
SQL 쿼리를 직접 실행합니다.
매개변수:
query(string): 실행할 SQL 쿼리
예시:
SELECT COUNT(*) FROM orders WHERE order_date >= '2025-01-01'
2. get_table_structure
테이블의 구조, 인덱스, 통계 정보를 조회합니다.
매개변수:
table_name(string): 조회할 테이블 이름
예시:
table_name: orders
3. list_tables
ec_ectlocal 스키마의 모든 테이블 목록을 조회합니다.
매개변수: 없음
4. get_order
특정 주문 ID로 주문 정보를 조회합니다.
매개변수:
order_id(string): 조회할 주문 ID
예시:
order_id: 20250804-0000020
5. get_order_detail
주문 상세 정보를 order_manage 테이블과 함께 조회합니다.
매개변수:
order_id(string): 조회할 주문 ID
6. get_member
회원 ID로 회원 정보를 조회합니다.
매개변수:
member_id(string): 조회할 회원 ID
예시:
member_id: ectlocal
Claude Desktop 설정
Claude Desktop에서 이 MCP 서버를 사용하려면 설정 파일에 다음을 추가하세요:
옵션 1: .env 파일 자동 로딩 (권장)
MCP 서버가 프로젝트 루트의 .env 파일을 자동으로 찾아 로딩합니다.
macOS - ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"ectlocal-connect": {
"command": "node",
"args": ["/Users/wjsong/Workspace/MCP/ectlocal-connect/dist/index.js"]
}
}
}
Windows - %APPDATA%/Claude/claude_desktop_config.json:
{
"mcpServers": {
"ectlocal-connect": {
"command": "node",
"args": ["C:\\Users\\wjsong\\Workspace\\MCP\\ectlocal-connect\\dist\\index.js"]
}
}
}
옵션 2: 환경변수 직접 설정
Claude Desktop 설정에서 직접 환경변수를 설정합니다.
macOS:
{
"mcpServers": {
"ectlocal-connect": {
"command": "node",
"args": ["/Users/wjsong/Workspace/MCP/ectlocal-connect/dist/index.js"]
}
}
}
데이터베이스 정보
- Host: your_db_host
- Port: your_db_pord
- Database: your_database
- Schema: your_schema
- User: db_user
주요 테이블
orders: 주문 정보order_manage: 주문 관리 정보member: 회원 정보
개발
스크립트
npm run build: TypeScript 컴파일npm run dev: 개발 모드 실행npm start: 프로덕션 모드 실행
의존성
@modelcontextprotocol/sdk: MCP SDKpg: PostgreSQL 클라이언트dotenv: 환경 변수 관리typescript: TypeScript 컴파일러tsx: TypeScript 실행기
MCP 서버 실행 방법
npm install && npm run build && npm start
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。
mcp-server-qdrant
这个仓库展示了如何为向量搜索引擎 Qdrant 创建一个 MCP (Managed Control Plane) 服务器的示例。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。