Skip to main content
Glama

fibo-mcp

Give your financial agent access to the Financial Industry Business Ontology (FIBO).

You can also ask an AI assistant to install it:

Install fibo-mcp from https://github.com/NeuroFusionAI/fibo-mcp

Installation

If already in fibo-mcp directory, skip clone and cd. Run the setup commands from the fibo-mcp directory:

git clone https://github.com/NeuroFusionAI/fibo-mcp.git && cd fibo-mcp
uv sync

Connect it to your MCP client using the matching command below, or the JSON configuration further down.

Codex

codex mcp add fibo-mcp -- uv run --directory "$(pwd)" main.py

Claude Code

claude mcp add --scope user fibo-mcp -- uv run --directory "$(pwd)" main.py

Restart or reload your client if needed to load the MCP.

Materialization applies the OWL-RL profile and caches the inferred graph. Triple counts depend on the pinned FIBO revision. OWL-RL is a scalable subset of OWL, not unrestricted or complete OWL reasoning.

# Build cache first (Ctrl+C after "Ready to serve")
uv run main.py --materialize

Then append --materialize after main.py in your client's launch command or configuration.

Other MCP Clients (Cursor, Claude Desktop, etc.)

For clients using mcpServers JSON, add this to your MCP config file and replace /path/to/fibo-mcp with the absolute checkout path:

{
  "mcpServers": {
    "fibo-mcp": {
      "command": "uv",
      "args": ["run", "--directory", "/path/to/fibo-mcp", "main.py"]
    }
  }
}

With materialization:

{
  "mcpServers": {
    "fibo-mcp": {
      "command": "uv",
      "args": ["run", "--directory", "/path/to/fibo-mcp", "main.py", "--materialize"]
    }
  }
}

Build cache first: uv run main.py --materialize (Ctrl+C after "Ready to serve")

Uninstall

Remove fibo-mcp from your client's MCP configuration. For Claude Code:

claude mcp remove fibo-mcp

Related MCP server: fd-open-data-mcp

Tools

Use search(term) to find candidate FIBO classes, inspect(identifier) to check their definitions and direct relationships, and sparql(query) for specific graph queries. Returned identifiers can be reused across all three tools.

Use FIBO when terminology or ontology relationships help the task. It does not provide company financials, market prices, or forecasts, and a search match does not establish that two concepts are equivalent.

Search indexes class labels, definitions, and FIBO's synonym, abbreviation, common-designation and preferred-designation annotations. It also accepts legacy skos:altLabel annotations. Exact labels rank first, then exact ontology annotations, local terminology hints, and BM25 matches. Ties are stable by class IRI, and each class appears once. Definitions are returned without truncation.

Each result identifies its match type: label, ontology_annotation, concept_alias (a local heuristic), or bm25. Exact matches include matched_text and match_source, the annotation predicate IRI or local:CONCEPT_ALIASES. The score field is the lexical BM25 score, not a probability or the priority used for exact matches. The pinned ontology is unchanged; these annotations improve lookup rather than adding financial facts.

Examples

"What is money?"

Money is a medium of exchange, a store of value, and a unit of account that facilitates economic transactions.

Forms of Money:

  • Commodity money - Physical items with intrinsic value (gold, silver)

  • Fiat money - Government-issued currency not backed by commodity (USD, EUR)

  • Digital/Electronic money - Bank deposits, digital payments

  • Cryptocurrencies - Decentralized digital assets like Bitcoin

Money's value ultimately rests on collective trust and acceptance.

Claude automatically queries FIBO...

According to FIBO:

Currency: "medium of exchange value, defined by reference to the geographical location of the monetary authorities responsible for it"

FIBO distinguishes:

  • Currency - the medium of exchange itself

  • Monetary Amount - a quantity denominated in a currency

  • Currency Identifier - ISO 4217 codes (USD, EUR, etc.)

"What is a country?"

A country is a distinct territorial body or political entity with its own government, defined borders, and sovereignty.

Key characteristics:

  • Defined territory

  • Permanent population

  • Government

  • Sovereignty

  • Recognition by other countries

There are approximately 195 recognized countries today.

Claude automatically queries FIBO...

Sovereign State: "non-physical juridical entity that is represented by one centralized government that has sovereignty over a geographic area"

Key characteristics from FIBO:

  • Represented by one centralized government

  • Has a permanent population

  • Has defined territory

  • Has capacity to enter into relations with other sovereign states

Related: Federated Sovereignty, Regional Sovereignty

"What is corporate?"

A corporation is a legal entity separate from its owners:

  • Limited liability - Owners not personally responsible for debts

  • Perpetual existence - Continues regardless of ownership changes

  • Legal personhood - Can own property, enter contracts, sue and be sued

  • Transferable ownership - Shares can be bought and sold

Claude automatically queries FIBO...

Corporation: "formal organization that is a legal entity (artificial person) distinct from its owners, created under the jurisdiction of the laws of a state or nation"

Related subclasses include Stock Corporation, For Profit Corporation, and Not-for-Profit Corporation.

Formation: Articles of Incorporation, Corporate Bylaws

Why FIBO?

Finance has a semantics problem—the same "trade," "counterparty," or "position" can mean different things across desks, systems, vendors, and jurisdictions. FIBO provides a formal, machine-readable ontology (OWL/RDF) so data from contracts, market feeds, and internal systems can be integrated and queried with shared meaning.

Contributors include Citigroup, Deutsche Bank, Goldman Sachs, State Street, Wells Fargo, CFTC, US Treasury OFR, and others. Standardized by EDM Council and OMG.

HTTP MCP (local by default)

The HTTP listener binds to 127.0.0.1 by default. Do not expose it directly to the internet: the server accepts read-only SPARQL and caps returned rows, but it does not provide application authentication or rate limiting. Put an authenticated, rate-limited gateway in front of it before any remote use.

# Start HTTP server
uv run main.py --http --port 8000

Technical Details

Data

299 RDF/OWL source files at the pinned revision; loaded triple count is logged at startup

Base graph

133,498 triples; 3,346 owl:Class subjects; 1,216 typed RDF/OWL properties; 16,665 URI subjects

Cache

./data/fibo.ttl (base), ./data/fibo_materialized.ttl (with --materialize)

Source revision

f59157fe156e3d91b1c045222d0a7dc06b7d78a2 by default; override with FIBO_REVISION

Refresh cache

uv run main.py --force-download

Server Flags

Flag

Description

--materialize

Enable OWL-RL inference (adds startup time; the materialized graph is cached)

--bm25-top-k N

Number of BM25 search results (default: 10)

--force-download

Re-download the configured FIBO revision

--http

Run as HTTP server instead of stdio

--port N

HTTP server port (default: 8000)

License

fibo-mcp is distributed under the MIT License.

References

Citation

If you use fibo-mcp in your research or software, please cite it using the following BibTeX entry:

BibTeX

@software{jung_fibo_mcp,
  author  = {Jung, Anthony W.},
  title   = {{fibo-mcp}: Open-source {MCP} for financial ontology},
  url     = {https://github.com/NeuroFusionAI/fibo-mcp},
  license = {MIT}
}

APA

Jung, A. W. (n.d.). *fibo-mcp: Open-source MCP for financial ontology* [Computer software]. https://github.com/NeuroFusionAI/fibo-mcp

Download CITATION.bib, or use Cite this repository on GitHub to export a citation from CITATION.cff. For reproducibility, also report the release tag or commit SHA used in your work.

Available Tools

2 tools
inspectA

Inspect one FIBO class/entity as an LLM-friendly local graph neighborhood.

Use this after discovering a compact URI such as fibo-sec-eq-eq:Share. It returns compact JSON with the queryable URI, labels, definitions, direct parent/child classes, and direct OWL restrictions. This is usually better than asking for only a bare URI because LLMs understand terminology and incident neighborhoods more reliably than isolated graph handles.

Inputs: identifier (required), limit. Returns: result

sparqlA

Query FIBO - the financial industry ontology used by major banks and regulators.

ALWAYS use this tool when: 1. Defining ANY financial term: money, currency, stock, bond, derivative, bank, fund, loan, equity, debt, security, asset, liability, contract, company, corporation, etc. 2. Reasoning about financial relationships and regulations 3. Explaining how financial concepts connect to each other 4. Retrieving industry-consensus ontology definitions

THREE-STAGE SYMBOLIC REASONING:

  1. SYMBOL ABSTRACTION (ground terms to FIBO classes): User term "stock" → FIBO class such as fibo-sec-eq-eq:Share (abstract variable) User term "bank" → FIBO class such as fibo-fbc-fct-fse:Bank FIBO ships per-module prefixes (e.g. fibo-sec-eq-eq, fibo-fbc-fi-fi); the server returns whichever module prefix is actually loaded for the URI. Use FILTER(CONTAINS(LCASE(?label), "term")) to find mappings

  2. SYMBOLIC INDUCTION (reason over abstract patterns): Pattern: ?X rdfs:subClassOf+ ?Y → "X is a kind of Y" Pattern: ?X owl:Restriction → "X has constraint on property" Pattern: ?X ?property ?Y → "X relates to Y via property" These patterns are INVARIANT - same reasoning applies regardless of specific classes

  3. RETRIEVAL (map back to user's domain): FIBO result fibo-sec-eq-eq:Share → explain in user's terms "a stock/share/equity" Always translate FIBO URIs back to natural language

FIBO IS A REASONING SCAFFOLD, NOT A PRIOR DISTRIBUTION:

  • USE for: constraints, formal definitions, taxonomic relationships

  • DO NOT use for: probabilistic inference (A ⊑ B ≠ P(A|B))

COVERAGE GAPS (not in FIBO - use your knowledge with explicit uncertainty): DeFi (AMM, liquidity pool) | Crypto (stablecoin, NFT) | Islamic (sukuk, murabaha) | Modern (SPAC, SAFE)

FIBO TERM MAPPINGS: money→Currency | stock→Share | bank→FinancialInstitution | company→LegalEntity | country→SovereignState

Returns compact JSON + BM25 suggestions. Built-in prefixes: rdf, rdfs, owl, skos. FIBO URIs use the module-specific prefixes loaded from the ontology (e.g. fibo-sec-eq-eq:Share, fibo-fbc-fi-fi:Security). When a URI cannot be compacted to a valid QName, the server returns the absolute IRI in angle brackets (<https://spec.edmcouncil.org/fibo/ontology/...>); use that form in your SPARQL query.

LLM-FRIENDLY QUERYING: Prefer terminology-rich, incident-style rows. The compact URI is a handle; label, definition, superclass labels, property labels, and restrictions carry the meaning. For one entity, use inspect(uri) to fetch its local semantic neighborhood in one call.

QUERY TEMPLATES:

Define: SELECT ?c ?label ?def WHERE { ?c rdfs:label ?label . FILTER(CONTAINS(LCASE(STR(?label)), "term")) OPTIONAL { ?c skos:definition ?def } } LIMIT 10

Inspect via SPARQL: SELECT ?c ?label ?def ?parent ?parentLabel WHERE { BIND(fibo-sec-eq-eq:Share AS ?c) OPTIONAL { ?c rdfs:label ?label } OPTIONAL { ?c skos:definition ?def } OPTIONAL { ?c rdfs:subClassOf ?parent . ?parent rdfs:label ?parentLabel } } LIMIT 20

Hierarchy: SELECT ?ancestor ?label WHERE { rdfs:subClassOf+ ?ancestor . ?ancestor rdfs:label ?label }

Children: SELECT ?child ?label WHERE { ?child rdfs:subClassOf . ?child rdfs:label ?label }

Properties: SELECT ?p ?target ?tLabel WHERE { ?p ?target . FILTER(?p != rdf:type && ?p != rdfs:subClassOf) OPTIONAL { ?target rdfs:label ?tLabel } }

Restrictions: SELECT ?prop ?propLabel ?constraint ?val WHERE { rdfs:subClassOf ?r . ?r a owl:Restriction; owl:onProperty ?prop . OPTIONAL { ?prop rdfs:label ?propLabel } OPTIONAL { ?r owl:someValuesFrom ?val . BIND("someValuesFrom" AS ?constraint) } }

Inputs: query (required). Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.3/5.0

    Scored across 2 tools

    Disambiguation4/5

    The two tools have clear primary purposes: inspect for a quick local neighborhood of a known entity, sparql for arbitrary queries. While sparql can technically perform inspect's function, the descriptions provide clear usage guidelines, minimizing confusion.

    Naming Consistency4/5

    Both tool names are simple, lowercase, and consistent in style. However, they do not follow a more typical verb_noun pattern, and 'sparql' is an acronym rather than a verb, making the pattern less predictable.

    Tool Count3/5

    With only two tools, the set feels thin for a comprehensive ontology server, but the combination of a general query tool and a convenience inspector covers the core needs. It is borderline, not excessive.

    Completeness5/5

    The sparql tool supports arbitrary SPARQL queries, giving full access to FIBO's data. Inspect adds convenience for single-entity lookups. There are no obvious missing operations for read-only ontology exploration.

    Maintenance

    ActivityStale
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      A
      maintenance
      Provides read-only access to curated financial domain knowledge and product data with verified provenance, enabling users to search and retrieve trusted financial information.
      -
    • A
      license
      Not graded
      quality
      B
      maintenance
      Provides a semantic concept layer over financial/economic data from multiple sources, enabling users to query data by concept and entity with automatic source selection and failover.
      312 PyPI
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Connects filing search and financial research tools to MCP-compatible assistants, letting them look up companies, query annual, quarterly and trailing-twelve-month financials, and ask questions answered with citations traceable to original SEC filings. It also supports company comparisons, valuation assumptions, and language selection for the returned research.
      MIT
    • F
      license
      Not graded
      quality
      A
      maintenance
      Enables natural-language financial research across SEC filings, earnings transcripts, financial metrics, stock and crypto market data, stock news, and prediction markets, returning structured, source-backed answers within MCP clients.
      -