Ontology MCP Server

Ontology MCP Server

ontology-mcp•bymrcholis

An MCP server that turns ISO 20022 banking XML messages into a queryable RDF knowledge graph exposed as tools for AI agents.

License: MIT•Runtime: Awaiting documentation review•Category: finance crypto

WHAT IT DOES

  • •Parses ISO 20022 XML messages into financial signals and maps them to RDF, merging into a knowledge graph.
  • •Runs arbitrary SPARQL queries against the built knowledge graph.
  • •Traces a full message lifecycle chain for a case ID, transaction ID, or BIC.
  • •Flags high-value transactions, rejected cancellations, and balance mismatches as anomalies.

BEST FOR

  • •Investigating the full lifecycle of a payment or cancellation case across interconnected messages.
  • •Detecting unusual or high-value transactions and rejected cancellations in loaded ISO 20022 data.

ABOUT ONTOLOGY-MCP

Ontology MCP Server is cataloged as an MCP server attributed to mrcholis. An MCP server that turns ISO 20022 banking XML messages into a queryable RDF knowledge graph exposed as tools for AI agents. It is categorized under finance crypto. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Ontology MCP Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Which ISO 20022 message types can it process?

It supports pacs.008, pacs.009, camt.053, camt.054, camt.056, camt.026, and camt.029 messages.

How is graph data stored persistently?

Persistent storage uses Oxigraph, and it falls back to in-memory rdflib if Oxigraph isn't installed.

Upstream README

View this exact version on GitHub

README.md · 579f817cf61a · Fetched 2026-11-13 12:07:59 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

Ontology MCP Server

Turn ISO 20022 banking messages into a queryable knowledge graph — accessible to any AI agent via MCP.

Banks, fintechs, and payment processors deal with thousands of ISO 20022 messages daily (pacs.008 payments, camt.056 cancellations, camt.029 responses). These XML files are dense, interconnected, and nearly impossible to query across — until now.

Ontology ingests ISO 20022 XML, extracts structured financial signals, builds an RDF knowledge graph, and exposes it as native tools that any MCP-compatible AI agent can use.

pip install ontology-mcp
python mcp_server.py
# Connect Claude Desktop, Cursor, or any MCP client

Why This Exists

ISO 20022 is the global standard for financial messaging. Every payment, settlement, cancellation, and statement flows through it. But the data is trapped:

  • XML is not queryable — finding "all transactions over $50K involving BLUEUSNY" means grepping through files
  • Messages are interconnected — a camt.056 cancellation references a pacs.008 payment, but they live in separate XML files with no link
  • AI agents can't use it — even with RAG, structured financial data resists naive chunking

Ontology solves all three by building a typed, linked knowledge graph with a natural-language interface.


Quick Start

Docker (easiest)

docker pull ghcr.io/mrcholis/ontology-mcp:latest
docker run ghcr.io/mrcholis/ontology-mcp

Or run the demo:

docker run ghcr.io/mrcholis/ontology-mcp python demo.py

pip install

pip install ontology-mcp
# Or with persistent storage:
pip install "ontology-mcp[oxigraph]"

2. Run the demo

python -m ontology_mcp.demo

This loads sample ISO 20022 messages and shows you what the graph looks like.

3. Fire up the server

python mcp_server.py

4. Connect to Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "ontology": {
      "command": "python",
      "args": ["/path/to/ontology-mcp/mcp_server.py"]
    }
  }
}

Restart Claude. Now you can ask:

"Load the XML files from my messages folder and find all transactions above $50,000 involving BLUEUSNY"

"What is the full lifecycle of cancellation case 20220718USDDSA9407803873?"

"Are there any anomalies or balance mismatches in the loaded data?"


What You Can Do

ToolWhat it does
extract_and_mapParse ISO 20022 XML → signals → RDF, merge into graph
load_xml_fileLoad an XML file from disk and process it
load_output_directoryLoad all pre-built .ttl files from a folder
query_lifecycleFull message chain for a case ID / transaction ID / BIC
sparql_queryRun arbitrary SPARQL against the graph
find_anomaliesFlag high-value transactions, rejected cancellations, balance mismatches
get_institution_activityAll messages for a BIC code, with totals by type
graph_statsTriple count, signal breakdown, BIC inventory
start_stream_serverStart a WebSocket server for streaming XML ingest
push_stream_messagePush an XML message over WebSocket in real-time

Supported Message Types

MessageDescription
pacs.008Payment initiation (FI → FI)
pacs.009Payment settlement
camt.053Account statement
camt.054Debit/credit notification
camt.056Cancellation request
camt.026Unable to apply
camt.029Cancellation response / resolution

Architecture

ISO 20022 XML
    |
    v
FinancialSignalExtractionPipeline   → extracts typed Python signal objects
    |
    v
FinancialSignalToRDFMapper          → maps signals to RDF triples
    |
    v
RDF Knowledge Graph (rdflib / Oxigraph)
    |  queryable via SPARQL
    v
MCP Tools (mcp_server.py)           → exposed over stdio transport
    |
    v
AI Agent / Claude Desktop

Persistent storage uses Oxigraph (RocksDB-backed). Falls back to in-memory rdflib if Oxigraph isn't installed.


Examples

Query a full payment lifecycle

User: What happened with cancellation case 20220718USDDSA9407803873BLUEUSNY001?

Agent: I found 4 messages in the lifecycle:

  1. pacs.008 — Payment initiated (BLUEUSNY → FEDNYUSS)
     $94,078.03 USD on 2022-07-18

  2. camt.056 — Cancellation requested by BLUEUSNY
     Reason: duplicate submission

  3. camt.029 — Cancellation rejected
     Reason: payment already settled

  4. camt.026 — Unable to apply notification sent to BLUEUSNY

Find anomalies

User: Are there any unusual transactions?

Agent: Found 4 high-value transactions (>$50K):
  - TXN_20220718_001: $94,078.03 (BLUEUSNY → FEDNYUSS)
  ...

Found 1 rejected cancellation:
  - Case 20220718USDDSA9407803873: rejected (already settled)

Development

git clone https://github.com/mrcholis/ontology-mcp
cd ontology-mcp
python3.11 -m venv venv311
source venv311/bin/activate
pip install -e ".[all]"

# Run tests
python _test_mcp_v2.py

Roadmap

  • ISO 20022 message support (pacs.008/009, camt.053/054/056/026/029)
  • Persistent Oxigraph storage
  • WebSocket streaming ingest
  • Production IRIs (replace http://example.org/ namespaces)
  • SPARQL HTTP endpoint
  • pain.001 / pain.002 payment initiation messages
  • Docker image for one-command deploy

License

MIT

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Ontology MCP Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/ontology-mcp)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related finance crypto MCP Servers

Alternative and complementary servers in the same category

View all in finance crypto →
USA Spending MCP Server
usaspending-mcp-server•thsmale

A stateless streamable HTTP MCP server for interacting with the official source of government spending data.

Repository stats unavailable
Finance & Analytics
Fortnox MCP server — More AI
more-ai-chatgpt-claude-mcp-fortnox•amor3

A hosted, remote MCP server for Fortnox that lets AI assistants answer questions from a company's bookkeeping and propose changes for approval before writing them.

0
Finance & Analytics

OptimistFi is a read-only remote MCP server that provides perpetual futures market data, perps prop firm rules and pricing, and US equity investment research.

Repository stats unavailable
Finance & Analytics