OriginTrail
  • Get started with OriginTrail
  • OriginTrail Ecosystem — Call for Papers (Coming Soon)
  • Key Concepts
    • Decentralized Knowledge Graph (DKG)
    • DKG key concepts
  • TRAC: DKG utility token
  • Build with DKG
    • Quickstart (test drive the DKG in 5 mins)
      • Quickstart with Node.js
      • Quickstart with Python
    • Querying the DKG
    • DKG Edge Node
      • DKG Edge Node architecture
      • Get started with the Edge Node boilerplate
        • Automated setup with the installer
        • Manual setup
        • Usage example
      • Customize & build with the Edge Node
      • Knowledge Mining and dRAG examples
      • Deploy your Edge Node based project
        • Automated deployment with installer
      • DKG Edge Node inception program
      • DKG Edge Node API documentation
    • DKG Core Node
      • Run a V8 Core Node on testnet
        • Preparation for V8 DKG Core Node deployment
        • V8 DKG Core Node installation
      • Run a V8 Core Node on mainnet
        • Preparation for V8 DKG Core Node deployment
        • V8 DKG Core Node installation
      • How to open up your node for publishing
    • DKG toolkit
      • DKG SDK
        • Development environment setup
        • DKG Javascript SDK (dkg.js)
          • Interact with DKG paranets
          • Knowledge submission & curation
          • Paranet's incentives pool implementation
        • DKG Python SDK (dkg.py)
      • DKG paranets
        • Deploying a DKG paranet
        • Building with DKG paranets
        • Syncing a DKG Paranet
        • Initial Paranet Offerings (IPOs)
          • IPO specification
          • Launching your IPO
          • Paranet's incentives pool
          • IPO voting
      • AI agents
        • ElizaOS DKG agent
        • Custom DKG Python agent
        • Custom DKG JavaScript agent
      • Using the DKG with MCP
    • Ecosystem call for papers
  • DKG under the hood
    • Introduction
    • Delegated staking
      • Step-by-step staking
      • Redelegating stake
  • Random Sampling DKG Proof System
    • Random sampling rollout
    • Random Sampling FAQ
  • DKG Sync
  • Integrated Blockchains
    • Base blockchain
      • Connect to Base
    • Gnosis chain
      • Connect to Gnosis
    • NeuroWeb
    • Teleport instructions - NeuroWeb
    • Bridging to Moonbeam
    • Deployed smart contracts
  • Bounties & rewards
    • General bug bounty
    • Code contributions & V8 bug bounty
  • Whitepapers & RFCs
    • OriginTrail whitepaper
    • OriginTrail RFCs
  • Useful Resources
    • What's new with OriginTrail V8
    • DKG V8 guidebook
      • Protocol updates
      • Feature roadmap
      • How to upgrade to V8?
    • Public nodes
    • Tutorials
    • Test token faucet
    • Development principles
    • Community created resources
    • Linked data & knowledge graphs
    • Available networks, network details and RPCs
    • OT Node Engine implementation details
      • Modules
      • Command Executor
    • Contribution guidelines
      • Guidelines for automated test contributions
    • Explore the OriginTrail ecosystem
Powered by GitBook
On this page
  • What is MCP?
  • How does the DKG work with MCP?
  • Why is this powerful?
  • See it in action - DKG & Microsoft Copilot agent integration via MCP

Was this helpful?

Edit on GitHub
  1. Build with DKG
  2. DKG toolkit

Using the DKG with MCP

The OriginTrail Decentralized Knowledge Graph (DKG) can be integrated with the Model Context Protocol (MCP) to provide large language models (LLMs) with access to decentralized, structured, and verifiable knowledge.

This integration enables applications that use MCP to:

  • Query the DKG using SPARQL to retrieve semantically rich data

  • Generate and publish Knowledge Assets to the DKG from natural language using JSON-LD

  • Store and retrieve decentralized agent memory in a standardized, interoperable way

What is MCP?

The Model Context Protocol (MCP) is an open standard that defines how AI applications provide and receive context from data sources and tools. Think of MCP as a "USB-C" for LLMs — it allows LLMs to plug into external tools and structured data environments in a standardized, interoperable way.

MCP uses a client-server architecture:

  • MCP Servers expose tools and data from local or remote environments

  • MCP Clients (like Claude Desktop or custom IDEs) call those tools using a standard protocol

This makes it easy to build and scale AI workflows across systems without tightly coupling to any single provider or infrastructure.

How does the DKG work with MCP?

By registering the DKG as a tool provider in an MCP server, you can:

  • Query knowledge using tools like query_dkg_by_name, which execute SPARQL queries over the DKG

  • Publish knowledge from unstructured text using tools like create_knowledge_asset, which turn LLM-generated content into structured JSON-LD and publish it to the DKG

  • Expand the tools above and add additional tools to interact with the DKG (e.g. creating Knowledge Assets from websites or documents)

This allows agents using MCP-compatible clients to:

  • Interact with real-time, decentralized knowledge

  • Add to the shared memory layer used by other agents

  • Benefit from data provenance, versioning, and ownership built into the DKG

Why is this powerful?

MCP makes it easy to build modular, agent-based systems where LLMs use tools to:

  • Ask questions against the Decentralized Knowledge Graph

  • Write and revise their own memory as JSON-LD Knowledge Assets

  • Store results and publish new discoveries collaboratively

When paired with the DKG, this gives LLM-based systems access to a decentralized knowledge base that is:

  • Interoperable (via RDF and schema.org)

  • Trustworthy (anchored with cryptographic proofs)

  • Queryable (via SPARQL and linked data tooling)

To get started:

  • Explore the dkg-mcp repo (coming soon)

  • Try integrating the DKG into your MCP server

  • Build agents that reason over, expand, and query the decentralized web of knowledge

See it in action - DKG & Microsoft Copilot agent integration via MCP

PreviousCustom DKG JavaScript agentNextEcosystem call for papers

Last updated 1 day ago

Was this helpful?

Example of DKG integration with the Microsoft Copilot Agent