MCP Hub
Back to servers

KIP

Validated

A graph-oriented MCP server that provides memory persistence and knowledge evolution for LLMs using its own Knowledge Interaction Protocol (KIP). It bridges the gap between probabilistic reasoning and deterministic knowledge through structured 'Knowledge Capsules' and memory primitives.

Stars
54
Forks
3
Tools
2
Updated
Jan 2, 2026
Validated
Jan 9, 2026
Validation Details

Duration: 4.3s

Server: kip-mcp-server v0.1.0

Quick Install

npx -y @ldclabs/kip-mcp-server

🧬 KIP (Knowledge Interaction Protocol)

English | 中文

A graph-oriented interaction protocol designed specifically for Large Language Models,
bridging the gap between LLM and Knowledge Graph.


What is KIP?

KIP (Knowledge Interaction Protocol) is a standard interaction protocol that bridges the gap between LLM (Probabilistic Reasoning Engine) and Knowledge Graph (Deterministic Knowledge Base). It is not merely a database interface, but a set of memory and cognitive operation primitives designed specifically for intelligent agents.

Large Language Models (LLMs) have demonstrated remarkable capabilities in general reasoning and generation. However, their "Stateless" essence results in a lack of long-term memory, while their probability-based generation mechanism often leads to uncontrollable "hallucinations" and knowledge obsolescence.

KIP was born to solve this problem through Neuro-Symbolic AI approach.

Key Benefits

  • 🧠 Memory Persistence: Transform conversations, observations, and reasoning results into structured "Knowledge Capsules"
  • 📈 Knowledge Evolution: Complete CRUD and metadata management for autonomous learning and error correction
  • 🔍 Explainable Interaction: Make every answer traceable and every decision logically transparent
  • LLM-Optimized: Protocol syntax optimized for Transformer architectures with native JSON structures

Quick Start

// Query: Find all drugs that treat headache
FIND(?drug.name)
WHERE {
  ?drug {type: "Drug"}
  (?drug, "treats", {name: "Headache"})
}
LIMIT 10
// Store: Create a new knowledge capsule
UPSERT {
  CONCEPT ?aspirin {
    {type: "Drug", name: "Aspirin"}
    SET ATTRIBUTES { molecular_formula: "C9H8O4", risk_level: 2 }
    SET PROPOSITIONS { ("treats", {type: "Symptom", name: "Headache"}) }
  }
}
WITH METADATA { source: "FDA", confidence: 0.95 }
// Explore: Discover schema
DESCRIBE PRIMER

Documentation

DocumentDescription
📖 SpecificationComplete KIP protocol specification (English)
📖 规范文档完整的 KIP 协议规范 (中文)
🤖 Agent InstructionsOperational guide for AI agents using KIP
⚙️ System InstructionsSystem-level maintenance and hygiene guide
📋 Function Definitionexecute_kip function schema for LLM integration

Core Concepts

Cognitive Nexus

A knowledge graph composed of Concept Nodes and Proposition Links, serving as the AI Agent's unified memory brain.

graph LR
    subgraph "Cognitive Nexus"
        A[Drug: Aspirin] -->|treats| B[Symptom: Headache]
        A -->|is_class_of| C[DrugClass: NSAID]
        A -->|has_side_effect| D[Symptom: Stomach Upset]
    end

KIP Instruction Sets

Instruction SetPurposeExamples
KQL (Query)Knowledge retrieval and reasoningFIND, WHERE, FILTER
KML (Manipulation)Knowledge evolution and learningUPSERT, DELETE
META (Discovery)Schema exploration and groundingDESCRIBE, SEARCH

Schema Bootstrapping

KIP uses a self-describing schema where type definitions are stored within the graph itself:

  • $ConceptType: Meta-type for defining concept node types
  • $PropositionType: Meta-type for defining proposition predicates
  • Domain: Organizational units for knowledge

Resources

This repository includes ready-to-use resources for building KIP-powered AI agents:

📦 Knowledge Capsules (capsules/)

Pre-built knowledge capsules for bootstrapping your Cognitive Nexus:

CapsuleDescription
Genesis.kipFoundational capsule that bootstraps the entire type system
Person.kipPerson concept type for actors (AI, Human, Organization)
Event.kipEvent concept type for episodic memory
persons/self.kipThe $self concept instance
persons/system.kipThe $system concept instances

🔌 MCP Server (mcp/)

kip-mcp-server - Model Context Protocol server that exposes KIP tools over stdio:

  • Tools: execute_kip, list_logs
  • Resources: kip://docs/SelfInstructions.md, kip://docs/KIPSyntax.md
  • Prompt: kip_bootstrap for ready-to-inject system prompt

🎯 Agent Skills (skill/)

kip-cognitive-nexus - Publishable skill for AI agents:

  • Python client script for anda_cognitive_nexus_server
  • Complete syntax reference and agent workflow guide

Implementations

ProjectDescription
Anda KIP SDKRust SDK for building AI knowledge memory systems
Anda Cognitive NexusRust implementation of KIP based on Anda DB
Anda Cognitive Nexus PythonPython binding for Anda Cognitive Nexus
Anda Cognitive Nexus HTTP ServerAn Rust-based HTTP server that exposes KIP via a small JSON-RPC API (GET /, POST /kip)
Anda AppAI Agent client app based on KIP

Version History

VersionDateChanges
v1.0-RC22025-12-31Parameter placeholder prefix changed to :; batch command execution
v1.0-RC2025-11-19Release Candidate; KIP Standard Error Codes
v1.0-draft82025-07-17Added Event type; SystemInstructions.md; FunctionDefinition.json

Full version history →

About Us

ICPanda is a community-driven project that aims to build the foundational infrastructure and applications that empower AI agents to thrive as first-class citizens in the Web3 ecosystem.

License

Copyright © 2025 LDC Labs.

Licensed under the MIT License. See LICENSE for details.

Reviews

No reviews yet

Sign in to write a review