Core Concepts
1. π Model Context Protocol (MCP)
What is MCP?
Model Context Protocol (MCP) is a structured interface and data model that enables Large Language Models (LLMs) to consume user-specific context from decentralized sources in a secure, verifiable, and modular manner.
π Reference Documentation: docs.modelcontext.org
MCP acts as a protocol abstraction layer bridging:
π§Ύ Context Providers: Wallets, smart contracts, decentralized identity (DIDs), DAOs, on-chain storage, etc.
π€ Context Consumers: LLMs, AI agents, autonomous assistants, and context-driven bots.
MCP defines how verified data travels from Web3 infrastructure into language models without compromising user sovereignty or privacy.
What is MCP3?
MCP3 is the third iteration of the Model Context Protocol, designed specifically to interface with modern agentic LLMs and privacy-preserving identity standards. MCP3 introduces Machine Context Objects (MCOs) as cryptographically signed containers of structured, scoped, and optionally encrypted user context.
β
What MCP Enables (with Web3 Integrations)
MCP leverages best-in-class Web3 technologies to provide end-to-end verifiable context handling:
Context Negotiation
Determine what context the model can access based on user-granted scopes and roles.
π·οΈ EIP-712
, ERC-725
, DIDs
Context Injection
Insert structured, real-time data into prompts, API calls, or system messages.
π The Graph
for on-chain indexing, ENS
for identity
Context Provenance
Establish origin, authenticity, and timestamp of context with proofs.
π Chainlink
(oracle attestations), Ceramic
, ZKPs
Context Storage
Persist and optionally share encrypted context objects.
ποΈ Arweave
, IPFS
, Lit Protocol
Context Retrieval
Query historical or ephemeral context based on user or session.
π Ceramic IDX
, Farcaster
, Lens Protocol
MCP ensures that LLMs and autonomous agents never operate on unverifiable or non-consensual data, fulfilling a zero-trust and user-centric model of context-aware computation.
2. π§ What is βContextβ?
In MCP, context refers to any dynamic or persistent data that influences the behavior, personalization, or output of an AI model or agent. Context provides the model with verifiable knowledge about the user, their state, identity, and environment.
π§Ύ Types of Context
User Identity
Wallet addresses, DIDs, ENS names
π DID:ETHR
, ENS
, Ceramic IDX
Access Rights
Ownership of NFTs, DAO memberships, POAPs
π³ Snapshot
, ERC-721
, ERC-1155
, Guild.xyz
Behavioral History
Transaction logs, voting records, participation streaks
π Etherscan
, The Graph
, DAOhaus
, Tally
External Data Feeds
Live oracles for prices, identity attestations, off-chain inputs
π Chainlink
, API3
, UMA
, Space and Time
Social Graph
Follower graphs, profile metadata
π Farcaster
, Lens Protocol
, CyberConnect
π§© Nature of Context
Static
Persistent attributes
ENS name, DAO role
Dynamic
Frequently changing values
Wallet balance, proposal count
Permissioned
Requires explicit user consent or scoped access
Encrypted MCO field, POAP claim
π How MCP Handles Context
MCP ensures context is:
Scoped: Models only see what they are authorized to access (e.g.,
read.profile
,read.dao
).Signed: All context is verified at the source using EIP-712 signatures or ZK-based attestations.
Composable: Context is aggregated from multiple Web3 protocols and abstracted into a Machine Context Object (MCO).
Each context field can optionally be:
π Encrypted: Using Lit Protocol or client-side encryption.
π¦ Stored: On decentralized storage like IPFS or Arweave.
π§Ύ Attested: With proofs from Chainlink, Ceramic, or custom ZK-proofs.
3. Web3 Integration Layers
Wallets
MetaMask, WalletConnect, Frame
User authentication and signature-based consent
DIDs
Decentralized Identifiers (DID:ETHR, DID:PKH)
Persistent identity across chains and apps
Smart Contracts
EVM-based contracts, DAO governance
Source of on-chain data (roles, proposals, ownership)
Storage
IPFS, Arweave, Ceramic
Persistent storage of user-defined context
ZK Proofs
zk-SNARKs, zkKYC
Privacy-preserving context validation
4. MCP Context Object (MCO)
All contextual data is encapsulated in a standardized object called the MCP Context Object (MCO).
Example (simplified):
This object is passed to the LLM via an MCP-compliant context bridge, allowing the model to reason with real-world, decentralized context securely and transparently.
5. Benefits of MCP3 Approach
π Privacy by Design: Users selectively share context via signature or ZK proofs.
π§© Composable AI Agents: Agents can plug into multiple context sources.
βοΈ Verifiable Reasoning: Every piece of context can be traced and validated.
π Cross-chain Compatible: MCP3 is blockchain-agnostic and interoperable.
==========
ποΈ Architecture Overview
High-Level System Architecture
MCP3 is built on three pillars:
Context Providers (Web3 sources)
MCP Protocol Layer (context abstraction + validation)
LLM Agent Layer (context-consuming intelligent systems)
These are connected through a Context Bridge, enabling LLMs to access user-specific, permissioned data with cryptographic integrity.
Key Components
User Wallet & DID Resolver: Identity root, signs permissions, integrates via WalletConnect, MetaMask, or DID-based auth.
Smart Contract Layer: Provides on-chain data (DAO memberships, governance, tokens).
Context Gateway (MCP Engine): Aggregates, normalizes, and signs data into the MCO. Handles permission negotiation.
Storage Layer (optional): IPFS / Ceramic / Arweave for semi-static context (profiles, settings, chats).
LLM Runtime / Agent Layer: Receives structured MCO objects for fine-tuned responses. Interfaces via chatbot UIs, CLI tools, or embedded assistants.
Last updated