原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

jPOS MCP Server

作者:mohisyed版本 0.1.1i★ –i在你的电脑上运行
注册名称io.github.mohisyed/jpos-mcp-server

安装

概览

作者提供的说明(英文原文)

MCP server for jPOS and ISO 8583. Deterministic payment protocol tools for AI agents.

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 在你的电脑上运行
  • 传输方式: stdio
  • 分类: 网店与支付

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 注册中心没有列出需要填写的密钥。

你需要

  • PyPI已安装 Python 的 uv(用于 uvx 命令)

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json

{
  "mcpServers": {
    "jpos": {
      "command": "uvx",
      "args": [
        "jpos-mcp-server"
      ]
    }
  }
}

在终端中运行这条命令

claude mcp add jpos -- uvx jpos-mcp-server

在 Cursor 中打开

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

{
  "mcpServers": {
    "jpos": {
      "command": "uvx",
      "args": [
        "jpos-mcp-server"
      ]
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

在 VS Code 中打开

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

{
  "servers": {
    "jpos": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "jpos-mcp-server"
      ]
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。

你的选择通过 Cookie 保存在这台设备上,无需账户。

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 mohisyed 验证,该账户拥有此仓库

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

与“网店与支付”中的其他服务器比较i

  • 星标数多于此分类中其他 2535 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 2535 个服务器的 5% 更新
  • 基础检查结果等于或优于此分类中其他 2535 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

jPOS MCP Server 安全吗?

它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(0.1.1)于7个月前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。

有什么可以替代它?

同一分类中有:Spree Commerce: open-source B2B and marketplace ecommerce, Stripe MCP, MCP Cn Commerce

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

Stripe MCP

作者:stripe

MCP server integrating with Stripe - tools for customers, products, payments, and more.

在云端运行★ 2,043MIT12个月前更新
安装

MCP Cn Commerce

作者:TonyWang-hub

8 read-only MCP platform entries; support is operation-specific; merchant live acceptance pending

在你的电脑上运行★ 96MIT28天前更新
安装

作者的 README

打开 README

按原文从作者的仓库复制。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

ToolNamespaceWhat It DoesExample Input
lookup_fieldisoReturn full ISO 8583 field spec (name, format, jPOS class, max length)field_number: 35
decode_mtiisoDecode MTI into version, class, function, origin + expected responsemti: "0200"
generate_packagerjposGenerate complete GenericPackager XML from plain English"Visa auth fields 2,3,4,7,11,35,41,42 BCD"
validate_descriptorjposLint a Q2 deploy descriptor (channel, QMUX, TM rules)xml_content: " ..."
build_messagemsgValidate ISO 8583 field dict (mandatory fields, lengths, PAN safety){"0":"0200", "2":"4111..."}
search_jposdocsSemantic 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:

TierTimeoutTools
Fast2slookup_field, decode_mti
Medium5sbuild_message, validate_descriptor
Slow10sgenerate_packager
RAG15ssearch_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)
FileLayerWhat it covers
test_iso.pyunitlookup_field, decode_mti — valid/invalid fields, MTI categories
test_jpos_tools.pyunitgenerate_packager (BCD/ASCII), validate_descriptor (QMUX, channel-adaptor, txnmgr, malformed XML)
test_message.pyunitbuild_message — valid messages, missing fields, length violations, PAN rejection
test_rag.pyunitQuery expansion, mock collection responses, empty collection handling
test_timeout.pyunit@with_timeout — guardrail fires, fast passes, exceptions caught
test_validators.pyunitluhn_check, contains_likely_real_pan — Luhn edge cases, separators, test PAN whitelist
test_logging.pyunitPaymentSafeFormatter redaction, stderr handler config
test_mcp_integration.pyintegrationTool registration, JSON Schema generation, end-to-end MCP protocol calls
test_e2e.pyE2E workflowMulti-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:

  1. Happy path — valid input returns expected output
  2. Invalid input — bad types, out-of-range values, malformed data return structured errors
  3. 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
  1. 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.
  2. Embedding — Each chunk is encoded into a 768-dimensional vector using all-mpnet-base-v2 and stored in ChromaDB.
  3. 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.
  4. Stage 1 retrieval — Top 25 candidates fetched via cosine similarity.
  5. 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.
  6. 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:

ScoreQualityMeaning
0.55+StrongDirect answer in the chunk
0.40–0.55GoodRelevant context, may need synthesis
0.25–0.40PartialTangentially 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

只显示了开头部分;其余内容请在仓库中阅读

问 PopNx