Open-source B2B and marketplace ecommerce; new stores include an MCP server for AI agents.
jPOS MCP Server
ภาพรวม
คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)
MCP server for jPOS and ISO 8583. Deterministic payment protocol tools for AI agents.
สามเสาของ PopNx MCP
สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน
- เสียงผู้ใช้iยังไม่มีรีวิวรีวิวเปิดพร้อมระบบบัญชีในขั้นถัดไป
- ผลตรวจเบื้องต้นของเราiผ่าน 1 จาก 1 ข้อตรวจจากข้อมูลที่เปิดอยู่ ยังไม่ได้สแกนโค้ด
- การใช้งานiยังไม่ได้วัด★ –
ใช้ทำอะไรได้
ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry
- การเชื่อมต่อ: รันบนเครื่อง
- ช่องทาง (transport): stdio
- หมวด: ร้านค้าออนไลน์และรับเงิน
ติดตั้ง
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
ก่อนติดตั้ง
- ผลตรวจเบื้องต้น: ผ่าน 1 จาก 1 ข้อ
- รันในเครื่องคุณด้วยสิทธิ์ของผู้ใช้คุณ (ไฟล์ อินเทอร์เน็ต แอปต่าง ๆ)
- ทะเบียนไม่ได้ระบุ key ที่ต้องใส่
ต้องเตรียมก่อน
- PyPIติดตั้ง uv ของ Python (มีคำสั่ง uvx) ในเครื่อง
คุณใช้แอปไหน
เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”
เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json
{
"mcpServers": {
"jpos": {
"command": "uvx",
"args": [
"jpos-mcp-server"
]
}
}
}พิมพ์คำสั่งนี้ใน Terminal
claude mcp add jpos -- uvx jpos-mcp-serverหรือคัดลอกค่าตั้งเอง
วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json
{
"mcpServers": {
"jpos": {
"command": "uvx",
"args": [
"jpos-mcp-server"
]
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
หรือคัดลอกค่าตั้งเอง
วางในไฟล์ .vscode/mcp.json ของโปรเจกต์
{
"servers": {
"jpos": {
"type": "stdio",
"command": "uvx",
"args": [
"jpos-mcp-server"
]
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น
ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี
ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
ทำอะไรได้บ้าง
รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง
ผลตรวจเบื้องต้นi
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 7 พ.ย. 2569
- ✓ ผ่าน
ตัวตนผู้ทำตรงกับ repo
ชื่อใน registry ยืนยันด้วยบัญชี GitHub mohisyed ซึ่งเป็นเจ้าของ repo
- … ยังไม่ตรวจ
ยังมีคนดูแล
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
- … ยังไม่ตรวจ
มีสัญญาอนุญาต (license)
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
- – ไม่เกี่ยว
endpoint ตอบ
ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต
- – ไม่เกี่ยว
ล็อกอินแบบ OAuth
ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน
- … ยังไม่ตรวจ
คำอธิบายเครื่องมือไม่มีคำสั่งแอบแฝง
รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต
เทียบกับตัวอื่นในหมวด ร้านค้าออนไลน์และรับเงินi
- ดาวมากกว่า 0% ของอีก 1753 ตัวในหมวดนี้
- ส่งรุ่นใหม่เข้า registry ล่าสุดกว่า 5% ของอีก 1753 ตัวในหมวดนี้
- ผลตรวจเบื้องต้นดีกว่าหรือเท่ากับ 100% ของอีก 1753 ตัวในหมวดนี้
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
คำถามที่พบบ่อย
jPOS MCP Server ปลอดภัยไหม?
จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
ต้องใช้กุญแจหรือรหัสอะไรบ้าง?
registry ไม่ได้ระบุว่าต้องใช้กุญแจ แต่บางตัวจะขอให้ล็อกอินตอนใช้ครั้งแรก
ตัวนี้รันบนเครื่องหรือบนคลาวด์?
รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)
ยังมีคนดูแลอยู่ไหม?
repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (0.1.1) เข้า registry 7 เดือนที่ผ่านมา
ใช้กับโปรแกรมไหนได้บ้าง?
โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Python (uv) ในเครื่องด้วย
มีตัวไหนใช้แทนได้บ้าง?
ในหมวดเดียวกันมี Spree Commerce: open-source B2B and marketplace ecommerce, Stripe MCP, MCP Cn Commerce
ตัวที่ใช้แทนได้
server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว
อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi
Stripe MCP
server ทางการของ Stripe ให้ AI ดูและจัดการลูกค้า สินค้า การชำระเงิน และใบแจ้งหนี้ ต่อผ่านคลาวด์ของ Stripe และล็อกอินแบบ OAuth
MCP Cn Commerce
8 read-only MCP platform entries; support is operation-specific; merchant live acceptance pending
README จากผู้ทำ
เปิดอ่าน README
ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ
jPOS MCP Server
mcp-name: io.github.mohisyed/jpos-mcp-server
The first open-source MCP server for jPOS and ISO 8583.
*Claude validating a real ISO 8583 financial transaction request using deterministic tools. No guessing — every answer comes from verified data.*
An MCP server that gives AI agents (Claude, Cursor, VS Code Copilot) deterministic, verified access to ISO 8583 field specs, MTI decoding, jPOS packager XML generation, deploy descriptor validation, message building, and jPOS documentation search.
No more guessing packager class names. No more scrolling a 300-page PDF. Call a tool, get the right answer.
Table of Contents
- Quickstart
- Tools
- Architecture
- Testing
- Knowledge Base (RAG)
- Docker
- Claude Desktop Setup
- MCP Inspector
- Security
- Troubleshooting
- Roadmap
- Contributing
Quickstart
Prerequisites: Python 3.11+ and uv package manager.
# 1. Clone and install
git clone https://github.com/mohisyed/JPOS-MCP.git cd JPOS-MCP uv sync
2. (Optional) Set up the knowledge base for semantic search
mkdir -p knowledge/sources curl -o knowledge/sources/proguide.pdf https://jpos.org/doc/proguide-draft.pdf uv run python knowledge/ingest.py
3. Add to Claude Desktop (see Claude Desktop Setup below)
All 6 tools work immediately after step 1. Step 2 enables the search_jpos RAG tool with real documentation.
Tools
| Tool | Namespace | What It Does | Example Input |
|---|---|---|---|
lookup_field | iso | Return full ISO 8583 field spec (name, format, jPOS class, max length) | field_number: 35 |
decode_mti | iso | Decode MTI into version, class, function, origin + expected response | mti: "0200" |
generate_packager | jpos | Generate complete GenericPackager XML from plain English | "Visa auth fields 2,3,4,7,11,35,41,42 BCD" |
validate_descriptor | jpos | Lint a Q2 deploy descriptor (channel, QMUX, TM rules) | xml_content: " ..." |
build_message | msg | Validate ISO 8583 field dict (mandatory fields, lengths, PAN safety) | {"0":"0200", "2":"4111..."} |
search_jpos | docs | Semantic search over jPOS Programmer's Guide (RAG) | "How to configure QMUX" |
Why deterministic tools instead of LLM inference?
LLMs can guess that field 35 uses IFA_LLVAR, but they sometimes hallucinate class names like IFA_LLTRACK2 (doesn't exist). Our tools read from data/iso_fields.json — a verified lookup table — so the answer is always correct. The AI decides *which* tool to call; our code provides the *facts*.
Architecture
┌─────────────────────────────────────────────────────────────────┐
│ AI AGENT CLIENTS │ │ Claude Desktop · Claude API · Cursor · VS Code Copilot │ └──────────────────────────┬──────────────────────────────────────┘ │ MCP Protocol (JSON-RPC 2.0) stdio (local) / Streamable HTTP (Docker) │ ┌──────────────────────────▼──────────────────────────────────────┐ │ jpos-mcp-server (Python / FastMCP v3.1.1) │ │ │ │ main.py │ │ ├── iso_server [iso] lookup_field, decode_mti │ │ ├── jpos_server [jpos] generate_packager, validate_descriptor│ │ ├── msg_server [msg] build_message │ │ └── rag_server [docs] search_jpos │ │ │ │ ┌──────────────┐ ┌─────────────────────────────────────────┐ │ │ │ DATA LAYER │ │ KNOWLEDGE LAYER │ │ │ │ iso_fields │ │ ChromaDB + sentence-transformers │ │ │ │ mti_table │ │ Chunked jPOS Programmer's Guide │ │ │ │ mandatory │ │ + project docs (ISO 8583 deep dive) │ │ │ └──────────────┘ └─────────────────────────────────────────┘ │ │ core/ — timeout guardrails, PAN detection, safe logging │ └──────────────────────────────────────────────────────────────────┘
Sub-server composition
The server is split into 4 domain-specific sub-servers mounted via FastMCP.mount(). Each sub-server is independently testable — a bug in the RAG pipeline doesn't prevent ISO field lookups from working. Adding a new domain is one file + one mount() call in main.py.
Timeout guardrails
Every tool is wrapped with @with_timeout() using asyncio.wait_for(). If a tool hangs (e.g., ChromaDB cold start), it returns a structured error dict instead of blocking the entire MCP server. Timeout tiers:
| Tier | Timeout | Tools |
|---|---|---|
| Fast | 2s | lookup_field, decode_mti |
| Medium | 5s | build_message, validate_descriptor |
| Slow | 10s | generate_packager |
| RAG | 15s | search_jpos |
Testing
Why we test
Payment systems have zero tolerance for wrong answers. A bad packager class name (IFA_LLVAR vs IFB_LLHEX) causes cryptic byte-level parsing errors that take hours to debug. Our tests verify that every tool returns correct, deterministic results across all input types.
Running tests
# Install dev dependencies (pytest, ruff, black, coverage)
uv sync --dev
Run all 114 tests (unit + MCP integration + E2E workflows)
uv run pytest tests/ -v
Run a single test file
uv run pytest tests/test_iso.py -v
Run a single test function
uv run pytest tests/test_iso.py::test_decode_mti_request -v
Run with coverage report (target: 80%+, current: 91%)
uv run pytest tests/ --cov=servers --cov=core --cov-report=term-missing
Lint (must pass with zero errors)
uv run ruff check .
Format
uv run black .
Test structure (114 tests, 3 layers)
| File | Layer | What it covers |
|---|---|---|
test_iso.py | unit | lookup_field, decode_mti — valid/invalid fields, MTI categories |
test_jpos_tools.py | unit | generate_packager (BCD/ASCII), validate_descriptor (QMUX, channel-adaptor, txnmgr, malformed XML) |
test_message.py | unit | build_message — valid messages, missing fields, length violations, PAN rejection |
test_rag.py | unit | Query expansion, mock collection responses, empty collection handling |
test_timeout.py | unit | @with_timeout — guardrail fires, fast passes, exceptions caught |
test_validators.py | unit | luhn_check, contains_likely_real_pan — Luhn edge cases, separators, test PAN whitelist |
test_logging.py | unit | PaymentSafeFormatter redaction, stderr handler config |
test_mcp_integration.py | integration | Tool registration, JSON Schema generation, end-to-end MCP protocol calls |
test_e2e.py | E2E workflow | Multi-step workflows: Visa auth packager build, reversal debugging, deploy descriptor validation, security boundary, RAG via MCP, system health, error handling |
Writing new tests
When adding a tool, cover three categories:
- Happy path — valid input returns expected output
- Invalid input — bad types, out-of-range values, malformed data return structured errors
- Edge cases — boundary values, empty inputs, PCI-sensitive data
All tools are async def, so use @pytest.mark.asyncio:
@pytest.mark.asyncio
async def test_my_new_tool(): result = await my_tool("valid input") assert result["expected_key"] == "expected_value"
Knowledge Base (RAG)
The search_jpos tool uses two-stage hybrid retrieval over jPOS documentation: a bi-encoder (mpnet) for fast candidate retrieval, followed by a cross-encoder reranker for high-precision ordering.
How it works
- Ingestion — PDFs and markdown files are cleaned (boilerplate, TOC dot-leaders, page headers stripped) and split into 200-word chunks with 40-word overlap. Low-signal chunks are filtered out at ingest time.
- Embedding — Each chunk is encoded into a 768-dimensional vector using
all-mpnet-base-v2and stored in ChromaDB. - Query expansion — Short or jargon-heavy queries (e.g. "STAN", "IFB_LLHEX") get domain context added before embedding so the model has enough signal to disambiguate.
- Stage 1 retrieval — Top 25 candidates fetched via cosine similarity.
- Stage 2 rerank — Cross-encoder (
ms-marco-MiniLM-L-6-v2) scores each(query, chunk)pair by attending across both inputs. This is significantly more accurate than cosine alone. - Display score — Combination of cross-encoder + cosine + rank-position bonus, returned as the top 5 chunks.
The cross-encoder loads lazily on first call (~1s). Falls back to keyword-overlap reranking if the model can't load (offline environments).
Setting up the knowledge base
# Download the jPOS Programmer's Guide (5.3MB PDF)
mkdir -p knowledge/sources curl -o knowledge/sources/proguide.pdf https://jpos.org/doc/proguide-draft.pdf
Run ingestion (first run downloads ~80MB mpnet + ~80MB cross-encoder)
uv run python knowledge/ingest.py
The ingest script processes:
- PDFs from
knowledge/sources/*.pdf— page-by-page chunking with cleanup - Markdown from
docs/*.md— section-aware chunking (splits on##headings) - Markdown from
knowledge/sources/*.md— for any additional docs you add
Ingestion is idempotent — running it again skips existing chunks and only adds new ones.
Default knowledge base after a full ingest: ~786 chunks across the jPOS Programmer's Guide, ISO 8583-1:2003 spec, Wikipedia reference, jPOS tutorial pages, and project docs.
Adding your own documents
Drop any .pdf or .md files into knowledge/sources/ and re-run:
uv run python knowledge/ingest.py
Good candidates:
- ISO 8583 reference guides
- Your organization's interchange spec documentation
- jPOS tutorial pages (save as markdown)
- GenericPackager XML examples with annotations
Search quality
Scores are calibrated for the cross-encoder + mpnet pipeline:
| Score | Quality | Meaning |
|---|---|---|
| 0.55+ | Strong | Direct answer in the chunk |
| 0.40–0.55 | Good | Relevant context, may need synthesis |
| 0.25–0.40 | Partial | Tangentially related |
| <0.25 | (filtered) | Below noise floor — not returned |
Benchmark across 25 representative queries: 0.886 average score, 100% strong results.
Docker
Build and run
# Build and start (HTTP transport)
docker compose -f docker/docker-compose.yml up -d --build
View logs
docker compose -f docker/docker-compose.yml logs -f
Re-ingest docs after adding new sources
docker compose -f docker/docker-compose.yml exec jpos-mcp uv run python knowledge/ingest.py
Check health
docker compose -f docker/docker-compose.yml exec jpos-mcp curl -sf http://localhost:8000/health
Docker architecture
- Base image:
python:3.11-slim - Embedding model pre-downloaded at build time (avoids 30-60s cold start)
- Non-root user (
appuser:1001) for security - Persistent volume for ChromaDB data (survives container restarts)
- Healthcheck every 30s on
/health
Claude Desktop with Docker
{
"mcpServers": { "jpos-expert": { "url": "http://localhost:8000/mcp" } } }
Claude Desktop Setup
macOS
Edit `~/Library/Application Support/Cla
ตัดมาแค่ช่วงต้น อ่านต่อใน repo