Back to blog
Let Claude Set Up Your Company's Knowledge Graph

This blog is written by AI for SEO

Let Claude Set Up Your Company's Knowledge Graph

HelixDB8 min read

Yes, Claude Code can do most of the setup work for a company knowledge graph: connect your sources, draft the ontology, load it and help you explore it. It only works if a person approves each change and every value in the graph traces back to the row or document quote it came from.

That condition is the whole article. A Claude company knowledge graph that nobody reviewed is a confident-sounding guess about your business. One where the agent proposes and you approve is a model your team can actually trust. Below is the approach that works with any tool, where the agent helps and where you must sign off, and then the exact flow in Helix Foundry, where Claude Code connects through the Helix MCP.

What 'let Claude build it' should and should not mean

It should mean Claude does the drafting and the legwork. It should not mean Claude decides what your business means.

The legwork is real: reading table schemas, spotting that customers.email in Postgres and contact.email in your CRM probably describe the same person, proposing entity types and links, writing the mapping from source columns to those types. That is hours of tedious work an agent does well.

What it cannot do is know that your company counts a trial account as a customer but not a lead, or that two vendors with similar names are actually separate. Those are business rules, and they live in people's heads. So the rule is simple: the agent drafts, you approve, and nothing uncertain gets written without a review.

Two properties make the result trustworthy. First, every approval is explicit, one change at a time. Second, every value in the finished graph points back to its source. If you cannot click from a fact to the row or quote behind it, you have a summary, not a knowledge graph.

The approach that works with any tool: goal, sources, entities, links, matching

Start from a question, not a schema. Five steps, in this order, whatever tool you use.

1. Goal. Write down two or three questions the graph must answer. "Which paying customers have an open support issue and a renewal in 60 days?" is a good one. It tells you which sources and entities matter and which you can skip.

2. Sources. List where the data lives: Postgres for the product database, Stripe for billing, a CRM for deals, Notion and documents for notes and contracts. Start with two or three sources that the goal actually touches. Adding all of them at once is how setups stall.

3. Entities. Pick the nouns: Customer, Subscription, Deal, Person, Document. Keep the list short. Each entity should map to a table, an object type in a SaaS tool, or something extractable from documents.

4. Links. Decide how entities connect: a Customer has Subscriptions, a Deal belongs to a Customer, a Document mentions a Customer. Links are where a graph earns its keep over a pile of tables, because they let a question cross system boundaries.

5. Matching. This is the hard part. The same customer shows up as a Stripe customer ID, a Postgres row, a CRM account and a name in a Notion page. Decide which fields identify a person or company (email, domain, an external ID) and which matches you will accept automatically versus review by hand. We walk through a concrete case in Link the Same Customer Across Stripe, Postgres and Notion.

If you want to see what an ontology is doing for you before committing, Ontology vs Knowledge Graph: Which Your AI Workflows Need covers when the extra structure pays off.

Where an agent helps and where a person has to approve

Give the agent the mechanical and proposal work; keep judgment calls for yourself.

Step Claude Code does A person approves
Connect sources Walks you through adding each one and syncing tables Which sources, and credentials you grant
Set the goal Asks what you want to answer The goal itself
Draft the ontology Proposes types, links and mappings from your tables Every type and link that goes in
Matching Flags likely duplicates across systems What counts as the same entity
Load Runs the load Whether to load this version
Explore Runs queries, summarizes what it finds Whether the answers match what you know

The pattern in the right-hand column is deliberate. Approvals sit at the points where a wrong guess spreads: a bad link type gets loaded into every query that follows. A wrong match merges two real customers into one.

Also keep the agent read-only toward your sources. Helix Foundry never writes to your sources, and any setup you build by hand should hold the same line: the agent reads Stripe and Postgres, it never edits them.

Set up with Claude in Helix Foundry: Helix Cloud and local, step by step

Helix Foundry is the app that connects your databases, tools and documents, drafts one ontology over them and loads it into HelixDB, our graph-vector database, as a connected graph. Its repository is Apache 2.0, and connectors cover SaaS connectors, databases (Postgres, MySQL, S3) and documents.

On Helix Cloud. Open foundry.helix-db.com and choose Set up with your agent. It copies a setup prompt for Claude Code, or another agent that supports MCP. The agent connects through the Helix MCP, guides you through adding data and setting a goal, generates a draft, then helps you review, load and explore it. It asks for your confirmation before each change.

You can also connect Claude Code by hand:

claude mcp add --transport http helix https://mcp.helix-db.com/mcp

Then run /mcp inside Claude Code and sign in with your Foundry account. Once connected, the agent can read and query your ontologies and prepare changes, and changes wait for your confirmation. Telling Claude Code setup https://foundry.new starts the same guided flow.

On your computer. You can run Foundry locally with Docker:

git clone https://github.com/helixdb/helix-foundry.git
cd helix-foundry
docker compose up -d --wait

The local install is for one person on their own computer, with no sign-in, so keep it on localhost and do not expose it to a network.

What happens in the flow. You add a source, test it and sync its tables. Foundry's agent then drafts a version of the ontology: types, links and mappings from your tables and documents. You review the draft, load it, and explore the result as a graph or ask questions in plain language. The Foundry docs cover the quickstart from sign-in to a first answer, and the guide to mapping Postgres tables to an ontology goes deeper on the database side.

Review the draft the way you would review a pull request from a new hire: assume good intent, verify everything that matters.

Trace values to sources. Pick five facts at random, such as a customer's plan, a renewal date, a contact's company, and follow each to its origin. In Foundry, every value in the graph traces back to the row or document quote it came from. If a fact has no source, treat it as suspect and reject it.

Review the links, not just the types. Entity types are easy to eyeball. Links are where errors hide. Check that "Customer has Subscription" really follows a shared ID and not a fuzzy name match. Look hardest at links that merge records across systems.

Ask these before you load:

  • Does every entity type map to something I can name in a source system?

  • Which matches were automatic, and which would I have made by hand?

  • Are there columns the draft ignored that matter to my goal?

  • If I ran my original goal question now, could I verify the answer by hand?

Then ask the graph something you already know the answer to. A question with a known answer is the cheapest test of a new graph. If it gets it wrong, the draft needs another pass before anyone else relies on it.

Data also changes after you load it. New columns appear, a CRM field gets renamed. Plan for that now; see How to Update an Ontology When Your Data Changes and Self-Healing Ontology: Keeping Links Right as Data Drifts.

Trade-offs: what an agent-built graph still needs from you

An agent shortens setup. It does not remove the need for an owner.

Business meaning is yours. Claude can propose that "account" and "customer" are the same thing. Only you know whether a churned account still counts. Expect to make a handful of definitional calls, and write them down.

Your data goes to a model. In Foundry, a generation uses your synced tables and documents to let Foundry's agent draft the version. If some tables hold data you do not want a model to see, leave them out of the sync. Your agent's own handling of what it reads is a separate decision on your side.

Start small. Two or three sources and one goal produce a graph you can verify. Ten sources produce a graph nobody can. Add sources one at a time after the first answer checks out.

Local is single-user. The local install suits one person exploring their own data. For a team, use Helix Cloud, where you can invite members and admins. Enterprise needs such as bringing your own cloud or your own models are covered in Self-Hosted Ontology Platform: Run Foundry in Your Cloud.

The time you save is real. The responsibility for what the graph claims stays with whoever clicks approve.

FAQ

Short answers to the questions people ask most before handing this job to an agent.

Start with one goal and two sources, then let Claude draft

A Claude company knowledge graph is worth building when the agent does the drafting and you keep the approvals and the source trail. Pick one question your team keeps answering by hand, choose the two sources it touches, and run the setup. Open foundry.helix-db.com, choose Set up with your agent, and approve the first draft yourself. If you would rather run it locally, clone the helix-foundry repo and start it with Docker.

Build with HelixDB

Give your coding agent the setup prompt, or sign up and deploy a database.

Sign up