Search DevTools

Jump to any tool or page

Entity Enricher

Multi-LLM entity enrichment: schemas, single/batch enrichment, fusion, model benchmarks.

TOT-Concept0 stars0 forksAI & Agents
View source

Install

mcp_config.json

{
  "mcpServers": {
    "ai-entityenricher-enricher": {
      "url": "https://entityenricher.ai/api/mcp/",
      "type": "streamable-http"
    }
  }
}

Documentation

Entity Enricher MCP Server

A hosted, remote Model Context Protocol server for Entity Enricher — structured knowledge extraction with multiple LLM providers. Connect Claude Desktop, Claude Code, Cursor, claude.ai or any MCP-compatible client and, from inside a chat:

  • Author JSON schemas — generate a sample entity, turn it into a schema, refine it in natural language.
  • Enrich entities — single or batch (up to 100), against your schemas, with any of your configured models.
  • Enrich multilingually — schemas with localized text fields get per-language values in every language you request, in one pass.
  • Fuse multi-model results — conflicts detected field-by-field, resolved by voting or LLM arbitration.
  • Benchmark models on your own data — saved scenarios, gold references, auto-scored quality / cost / speed.
  • Ground enrichments in documents — upload PDFs, images or audio and attach them to any flow.
  • Land it all in your own database — as real, migrated relational tables, synced by a client you run.

No install, no local process: the server runs at https://entityenricher.ai/api/mcp/ (streamable HTTP). This repository holds the public documentation and ready-to-use client configs; the server implementation lives in the Entity Enricher platform. (The one optional local binary is the database sync client below — and only if you want the rows in a database of your own.)

Enrichments become a real database — yours

The enrichment is the easy half. What you normally end up building yourself — the tables to hold the results, the DDL, the migration when the shape changes, and a loader that keeps it consistent — is what a database sync does for you, and a chat is a good place to drive it:

  • A designed schema, not a JSON dump. create_database_sync connects a database to a saved schema, and Entity Enricher derives the relational model from it: a table per entity type, PRIMARY KEYs, real FOREIGN KEYs, child tables for the parts an entity owns, junction tables for entities it merely references (one row many parents point at, not a copy per parent), typed columns, and indexes on what a list screen actually filters and sorts on. An LLM pass proposes each column's SQL contract — ask your client to read it back and fix what it got wrong (classify_database_model, update_schema) before anything ships.
  • Migrations you don't write. publish_schema turns the working copy into the contract: the change is diffed against what each database has actually shipped and travels down the same feed as the data — additive DDL applied silently, riskier transforms (a re-key, a type change, a renamed column) held for your confirmation. No hand-written ALTER, no drift.
  • Synced by an open-source client you run. create_database_credential issues the pairing token for ee-database — an MIT-licensed Go binary that lives next to your PostgreSQL, MySQL or SQLite. It connects outward over WSS and your connection string never leaves the machine: Entity Enricher never holds a credential to your database. It bootstraps from a .sql snapshot, applies each leased batch transactionally, acknowledges it, and halts loudly on a failing delta rather than skipping it. Releases are Sigstore-signed and the installer verifies that signature against the publishing workflow's identity before the binary is ever executable.
  your schema ──┬──▶ relational model   tables, PK/FK, child + junction tables, indexes
                ├──▶ migrations         schema edits, diffed and shipped as DDL
                └──▶ rows               every enrichment, merged into current state
                             │
                             │  one ordered feed, leased and acknowledged
                             ▼
                    ee-database  ──  MIT-licensed, Sigstore-signed, outbound WSS only
                             │       (your DSN never leaves your machine)
                             ▼
              your PostgreSQL · MySQL · SQLite

A client that can run commands (Claude Code) carries the whole loop, install included; any other client walks you through it and you paste one line into a terminal. No replica at all? list_entity_states browses the same merged rows server-side, and fetch_database_deltas / ack_database_deltas let a client apply the feed itself. Walkthrough: Database sync recipe.

Listed on the official MCP Registry as ai.entityenricher/enricher (see server.json).

Quickstart

Option 1 — OAuth (recommended)

For claude.ai, Claude Code, Cursor, and any MCP client that implements the standard OAuth flow. No API key to create or paste — the client discovers the authorization server automatically, your browser opens the Entity Enricher consent screen, and the connection acts on your behalf with your own role. Revoke it anytime under Settings → API Keys → Connected Apps.

Claude Code

claude mcp add --transport http entity-enricher https://entityenricher.ai/api/mcp/

Then run /mcp in a session and pick Authenticate — your browser opens the consent page. More options (project .mcp.json, API-key fallback): examples/claude-code/

claude.ai

Settings → Connectors → Add custom connector with URL https://entityenricher.ai/api/mcp/, then click Authorize on the consent screen. Walkthrough: examples/claude-ai-remote.md

Cursor / other OAuth-capable clients

Register the URL with no headers and the client prompts you to sign in: examples/cursor/mcp.json

Option 2 — API key (static JSON configuration)

For clients configured via a JSON file rather than an interactive sign-in (Claude Desktop, Continue, Zed) — and for headless/CI use.

  1. In the Entity Enricher web UI: Settings → API Keys → New organization access key. Pick a role — operator (read-mostly), editor (create/edit schemas), or owner (full control, required for benchmarks). Copy the ent_… value; it's only shown once.

  2. For Claude Desktop, edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

    {
      "mcpServers": {
        "entity-enricher": {
          "url": "https://entityenricher.ai/api/mcp/",
          "headers": { "X-API-Key": "ent_your_key_here" }
        }
      }
    }
    

    Restart Claude Desktop. Full file: examples/claude-desktop/

Try it

List my Entity Enricher schemas, then enrich "Sanofi" against the pharmaceutical company schema in English and French.

Claude discovers the tools automatically, confirms the model and schema choice with you, and returns the structured result inline.

Examples & recipes

Client configs and copy-paste chat walkthroughs live in examples/:

RecipeWhat it covers
Schema from samplegenerate a sample → schema → refine → first enrichment
Database syncschema → designed tables → publish → pair ee-database → migrations
Batch enrichmententity lists, external APIs, async polling, partial-failure retry
Model benchmarkscenarios, gold references, auto-scored model comparison

Per-client setup and examples: Claude Code · claude.ai · Claude Desktop · Cursor

Tools

54 tools, spanning the full schema-authoring and enrichment surface:

CategoryToolDescription
Discoverylist_modelsList the LLM models, languages, strategies, and (when the org has a plan with limits) the operational profile_limits available to the caller.
Schemasgenerate_sampleGenerate a realistic sample entity JSON from an entity-type description — the entry point of the schema-authoring loop.
Schemaslist_schemasList saved JSON schemas in your organization, pinned ones first.
Schemasget_schemaFetch the full content of a saved schema by ID, including all properties, identifying fields, expertise domains, and validation rules.
Schemascreate_schema_from_sampleGenerate and auto-save a JSON schema whose paths and types strictly follow an approved sample.
Schemassave_schemaPersist a schema you authored directly (no LLM call, no cost) as a new saved schema.
Schemasupdate_schemaUpdate a saved schema without an LLM call: rename, replace the schema_content, change tags, pin/unpin, or toggle the ambiguity check.
Schemasget_schema_partRead a part of a saved schema without fetching the whole document.
Schemasupdate_schema_propertyEdit ONE property of a saved schema's working copy by path — rename, change type or $ref, description, examples, flags — or remove it, without sending the full schema_content.
Schemasadd_schema_propertyAdd a property to an object of a saved schema's working copy: a scalar, an inline nested object (optionally with sub-properties, or untyped to fill later), or a $ref to an…
Schemasmove_schema_propertyMove ONE property of a saved schema's working copy into another container — a $defs entity ('$defs.X'), an inline object (object path, trailing '[]' enters an array's item type),…
Schemaspublish_schemaPublish a linked schema's working copy as its contract (publish model): enrichment and the linked database syncs follow the published content only, so structural edits (new…
Schemasdelete_schemaSoft-delete a saved schema by ID (restorable server-side shortly after; permanent deletion stays in the web UI).
Schemasanalyze_sampleAnalyze a sample entity before schema generation: ambiguity and identity scoping, two parallel model calls behind one request.
Schemasanalyze_schemaAnalyze a saved schema with the same two checks as analyze_sample — ambiguity and identity scoping — and write the verdicts onto its properties.
Enrichment & fusionstart_batch_enrichmentStart an asynchronous batch enrichment against a JSON schema and return {job_id, total} immediately.
Enrichment & fusionfetch_entitiesFetch a JSON array of entities from an external REST API (GET), server-side — the input step before start_batch_enrichment.
Enrichment & fusionenrich_entityRun a multi-model enrichment of a single entity against a JSON schema, returning the fused/best structured result.
Enrichment & fusionretry_expertisesRe-run only the FAILED expertise domains of an existing multi-expertise enrichment record, merging the recovered values back into the record — no re-payment for the domains that…
Enrichment & fusionmerge_recordsMerge 2+ enrichment records of the same entity into one fused result — the manual / re-run counterpart of the automatic fusion that follows a 2+ model enrich_entity or batch run.
Job controlget_job_statusPoll the status of an asynchronous LLM job — the middle step of every start → poll → fetch flow (start_batch_enrichment, generate_sample, run_benchmark, retry_expertises).
Job controlcancel_jobCancel a pending, running, or paused LLM job started by start_batch_enrichment, generate_sample, run_benchmark, or retry_expertises.
Job controlanswer_job_questionAnswer the clarification questions of a paused job and resume it — the reply half of the interactive loop used by generate_sample's document-grounded planner (get_job_status…
Records & statslist_recordsList past enrichment records in your organization, most recent first.
Records & statsget_recordFetch a single enrichment record by ID, including the full structured output, validation errors, prompts/responses, and metrics.
Records & statsget_statsAggregated statistics over your organization's enrichment records: totals, success rate, token usage, and cost summary.
Benchmarkslist_benchmark_scenariosList the organization's benchmark scenarios (saved, reusable enrichment tests: schema + entity + strategy + scoring config).
Benchmarksget_benchmark_scenarioFetch one benchmark scenario with its per-model results (quality / cost / speed scores; results whose config_hash differs from the scenario's are stale — re-run those models).
Benchmarkscreate_benchmark_scenarioCreate a benchmark scenario — a reusable model test.
Benchmarksupdate_benchmark_scenarioUpdate a benchmark scenario.
Benchmarksset_benchmark_referenceSave a scenario's gold reference — the expected output each model result is scored against, and the gate between create_benchmark_scenario and run_benchmark.
Benchmarksdelete_benchmark_scenarioDelete a benchmark scenario and its results.
Benchmarksrun_benchmarkLaunch a benchmark run — the final step of the benchmark lifecycle: execute the scenario's task (enrichment / sample generation / schema generation) with each selected model…
Attachmentsupload_attachmentUpload a file (base64-encoded) so it can be used as source material in LLM flows.
Attachmentsdelete_attachmentPermanently remove an attachment from the server by id.
Database Synclist_database_syncsList the database syncs registered on a saved schema, with pending delta counts.
Database Synclist_entity_statesBrowse the current entity state of a schema — the deduplicated, last-write-wins merged rows the entity layer holds (and every linked database mirrors), NOT the per-run records of…
Database Synccreate_database_syncConnect a database to a saved schema — the opt-in that turns enrichments into relational SQL deltas the user applies to their own PostgreSQL/MySQL/SQLite with the ee-database CLI…
Database Syncassign_sync_hostAssign (or clear) the sync host that provisions a database sync in managed ee-database mode: the assigned host claims the credential, creates the physical database if missing and…
Database Syncclassify_database_modelRe-run the database-model classification pass on a saved schema: an LLM proposes each property's SQL contract — database_key (identity), the index intent ('search' for text a…
Database Syncdelete_database_syncDelete a database sync and its queued deltas.
Database Synccreate_database_credential(Re)issue the sync-client credential of a database sync — the pairing step of the ee-database CLI workflow.
Database Syncfetch_database_deltasFetch the next FIFO window of SQL deltas for a database sync.
Database Syncack_database_deltasAcknowledge applied database deltas up to an id: releases the lease and, per the database's options, purges delivered copies and fully-delivered entity state.
Database Syncsync_records_to_databasePush already-stored enrichment output into the entity layer, so it reaches the schema's database sync.
Semantic IDslist_semantic_conceptsBrowse your organization's semantic-ID vocabulary — the org-scoped concepts that near-duplicate objects resolve to and database syncs key on.
Semantic IDsget_semantic_conceptOne concept in full: its surface-form aliases (the texts that resolve to it, one canonical), the identity source keys it was composed from, the records that resolved to it, and…
Semantic IDsprobe_semantic_conceptDry-run the resolution ladder for a text against one concept type — what an enrichment would do with it — without creating or bumping anything.
Semantic IDsadd_semantic_conceptAdd a concept to the vocabulary at usage 0 (editor role) — or, with alias_of, add the text as a new SURFACE FORM of that existing concept instead of a concept of its own.
Semantic IDsupdate_concept_aliasManage one surface form (alias) of a concept (editor role): action='remove' prunes a captured variant so its text stops resolving to the concept — the group's LAST surface form is…
Semantic IDsimport_semantic_conceptsResolve a batch of identity texts (up to 1000) against one concept type through the same ladder an enrichment uses.
Semantic IDsmerge_semantic_conceptsFold one concept (the loser) into another (the winner) — the resolution of a duplicates-band pair.
Semantic IDsdelete_semantic_conceptsDelete concepts by explicit ids, whole concept types, or every unused concept of a scope.
Semantic IDsmigrate_semantic_embeddingsThe org's embedding-model migration — the only sanctioned way to move existing concepts between embedding models.

Tool behaviour is identical to the REST endpoints they wrap — same validation, billing and plan limits as the web app. Write tools require the editor role; benchmark tools require owner plus a plan that includes Model Benchmarks.

Resources

Resources let the client browse data without a tool call — both render as Markdown.

ResourceURI template
Saved schemaenricher://schemas/{schema_id}
Enrichment recordenricher://records/{record_id}

The async job pattern

MCP tools can't stream, so long-running work is split into start → poll → fetch:

  1. A start tool (start_batch_enrichment, generate_sample, run_benchmark, retry_expertises) returns a job_id immediately.
  2. get_job_status(job_id) polls progress; paused jobs carry clarification questions that answer_job_question resolves; cancel_job aborts.
  3. Persisted outputs are fetched with list_records(job_id=…) (or the feature's own read tool, e.g. get_benchmark_scenario).

Jobs are held in a bounded in-memory manager — an unknown job_id means the job finished long ago; go straight to the records.

Interactive classification resume

The feature that only an interactive client unlocks. With a classification model enabled, a pre-flight check verifies the entity matches the schema type. On a mismatch the tool returns a non-error response instead of failing:

{
  "success": false,
  "error_code": "classification_warning",
  "message": "Pre-flight classification rejected the entity. ...",
  "classification": {
    "status": "mismatch",
    "reasoning": "Titan is a moon of Saturn, not a planet.",
    "confidence": 0.97
  },
  "job_id": "..."
}

Claude surfaces the reasoning, asks you to confirm, and retries with force_after_classification_warning=true. Workflow connectors (n8n, Make) have to auto-cancel here — a chat can just ask.

Error codes

Errors are structured dicts with an error_code field the client can pattern-match on:

error_codeWhen
invalid_requestMalformed UUID, mutually exclusive args, body validation failure

Sourced from the repository README.

More in AI & Agents