
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
cafe24-admin-mcp
Advanced tools
"어떤 테이블이 와도" 확장 가능한 범용 캐싱·분석 시스템
Claude Desktop과 Cafe24 Admin API를 연결하여 초고속 데이터 분석을 제공하는 MCP 서버입니다.
cd cafe24-admin
npm install
cp .env.example .env
# .env 파일 편집
필수 설정:
MALL_ID=your_mall_id
CLIENT_ID=your_client_id
CLIENT_SECRET=your_client_secret
# Redis 캐싱 (권장)
ENABLE_REDIS_CACHE=true
REDIS_URL=redis://localhost:6379
REDIS_TTL=3600
macOS:
brew install redis
brew services start redis
Ubuntu/Debian:
sudo apt update
sudo apt install redis-server
sudo systemctl start redis-server
Docker:
docker run -d -p 6379:6379 redis:alpine
npm run build
claude_desktop_config.json
에 추가:
{
"mcpServers": {
"cafe24-admin": {
"command": "node",
"args": ["/path/to/cafe24-admin/build/index.js"],
"env": {
"MALL_ID": "your_mall_id",
"CLIENT_ID": "your_client_id",
"CLIENT_SECRET": "your_client_secret",
"ENABLE_REDIS_CACHE": "true",
"REDIS_URL": "redis://localhost:6379"
}
}
}
}
토큰을 가지고 있다면 cafe24_set_tokens를 사용하세요.
1. Cafe24 앱 설정에서 Redirect URI 등록
2. cafe24_exchange_code로 토큰 교환
// Cafe24 API에서 자동 캐싱
cache_table_data({
table: "products",
apiEndpoint: "/api/v2/admin/products",
chunkSize: 200,
maxRows: 10000
})
// 커스텀 데이터 캐싱
cache_table_data({
table: "custom_analytics",
data: [
{metric: "sales", value: 1000000, date: "2025-01"},
{metric: "orders", value: 450, date: "2025-01"}
]
})
// SQL-like 쿼리 (1-50ms)
query_cached_table({
table: "products",
filter: {
display: "T",
price: {$gte: 10000}
},
columns: ["product_no", "product_name", "price"],
limit: 100,
orderBy: "price"
})
// 다중 그룹화 + 메트릭 (5-100ms)
aggregate_cached_table({
table: "orders",
groupBy: ["product_no", "order_status"],
metrics: ["count", "sum", "avg"],
sumField: "total_amount",
filter: {order_date: {$gte: "2025-01-01"}},
limit: 20
})
// 캐시 상태 확인
list_cached_tables({action: "list"})
// 성능 통계
list_cached_tables({action: "stats"})
// 캐시 정리
list_cached_tables({action: "clear_table", table: "products"})
작업 | 기존 API 방식 | 범용 캐시 방식 | 성능 향상 |
---|---|---|---|
10,000개 상품 조회 | 3초 + Context 초과 | 15ms | 200배 |
복합 집계 분석 | N×3초 (불가능) | 45ms | 무한대 |
필터링 + 정렬 | 2초 + 메모리 부족 | 8ms | 250배 |
반복 분석 | 매번 2-3초 | 1-10ms | 300배 |
cafe24_exchange_code
- OAuth 코드 교환cafe24_refresh_token
- 토큰 갱신cafe24_set_tokens
- 기존 토큰 직접 설정cafe24_get_token_status
- 토큰 상태 확인cafe24_clear_tokens
- 토큰 삭제products_search_by_name
- 상품명 검색products_list
- 상품 목록 조회products_count
- 상품 개수 확인products_detail
- 상품 상세 정보orders_list
- 주문 목록 조회orders_count
- 주문 개수 확인orders_detail
- 주문 상세 정보sales_volume
- 매출량 데이터sales_volume_analyze
- 매출 분석sales_top_selling_products
- 인기 상품products_download_csv
- 상품 CSV 다운로드orders_download_csv
- 주문 CSV 다운로드sales_download_csv
- 매출 CSV 다운로드cache_table_data
- 어떤 테이블이든 Redis 캐싱query_cached_table
- 초고속 테이블 쿼리aggregate_cached_table
- 복합 집계 분석list_cached_tables
- 캐시 관리총 22개 도구 (기존 18개 + 범용 캐싱 4개)
# 데이터 특성에 따른 청크 크기 조정
# 간단한 테이블: 200-500
# 복잡한 테이블: 50-100
# 대용량 텍스트: 25-50
REDIS_TTL=3600 # 1시간 (기본)
REDIS_TTL=86400 # 24시간 (안정적 데이터)
REDIS_TTL=1800 # 30분 (자주 변경되는 데이터)
AWS_REGION=ap-northeast-2
AWS_ACCESS_KEY_ID=your_key
AWS_SECRET_ACCESS_KEY=your_secret
S3_BUCKET_NAME=your-bucket
# Redis 서버 상태 확인
redis-cli ping
# 연결 테스트
redis-cli -h localhost -p 6379 ping
# 메모리 사용량 확인
redis-cli info memory
# 캐시 정리
# Claude에서: list_cached_tables({action: "clear"})
# 토큰 상태 확인
# Claude에서: cafe24_get_token_status()
# 토큰 갱신
# Claude에서: cafe24_refresh_token({refresh_token: "..."})
$gte
, $lte
, $between
)MIT License
범용 테이블 캐싱으로 어떤 크기의 데이터든 Claude Desktop에서 실시간 분석하세요! 🚀
FAQs
Cafe24 Admin API MCP Server with Memory Optimization
The npm package cafe24-admin-mcp receives a total of 15 weekly downloads. As such, cafe24-admin-mcp popularity was classified as not popular.
We found that cafe24-admin-mcp demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.