| English | 한국어 | 中文 |
If the internet broke down the walls of information, we’re building the internet of intelligence.
AICP (AI Inter-Communication Protocol) is an open protocol that enables different LLMs and users to collaborate freely within a unified network. With MCP (Model Context Protocol) compatibility, it can be used immediately with existing LLM services.
AICP creates an “Intelligence Network” where users bring their own AI agents (Claude, GPT, Gemini, etc.) and collaborate in real-time, sharing context and distributing tasks intelligently.
AICP was originally designed as an open intelligence network protocol for connecting multi-user LLM environments through a shared neural context.
In applied enterprise and B2B systems, this architectural framework scales directly into Evaluating and Optimizing how multiple LLM engines interpret, verify, and cite real-world entities (such as medical professionals, industry experts, and commercial brands).
This open-source foundation directly powers advanced applied research on:
AI Citation Readiness & Benchmarking: Real-time cross-engine validation of brand indexation.
Multi-LLM Response Synthesizing: Automated validation routing across competitive LLM models (ChatGPT, Claude, Gemini, Perplexity).
Dynamic Evidence Packet Routing: Structural schemas that convert enterprise operational logs into verifiable trust signals for AI agents.
Trust Signal Synchronization: Keeping localized commercial data persistently fresh within the fast-expiring indexing cycles of Generative Search Engines (GEO/AEO).
AICP implements a true intelligence network where users connect through their own LLMs, not just simple AI tool connections.
[User A + Claude] [User B + GPT-4]
│ │
└──────────┬─────────────────┘
│
┌──────▼──────┐
│ AICP Hub │
│ (Neural Bus)│
└──────┬──────┘
│
┌──────────┴─────────────────┐
│ │
[User C + Gemini] [User D + Claude]
┌──────────────────────────────────────────────────────────┐
│ User Network Layer │
├──────────────────────────────────────────────────────────┤
│ User A User B User C │
│ ↓ ↓ ↓ │
│ Claude ChatGPT Gemini │
└─────┬──────────────────────┬────────────────────┬────────┘
│ │ │
└──────────────────────┼────────────────────┘
│
MCP WebSocket Protocol
│
┌─────────────────────────────▼────────────────────────────┐
│ AICP Neural Bus │
│ │
│ ┌──────────────────────────────────────────────────┐ │
│ │ 🧠 Intelligent Routing Engine │ │
│ │ │ │
│ │ • User intent analysis │ │
│ │ • Optimal AI agent matching │ │
│ │ • Load balancing & QoS management │ │
│ └──────────────────────────────────────────────────┘ │
│ │
│ ┌──────────────────────────────────────────────────┐ │
│ │ 🔄 Collaboration Orchestration │ │
│ │ │ │
│ │ • Multi-user session management │ │
│ │ • Real-time message broadcasting │ │
│ │ • Task distribution & synchronization │ │
│ └──────────────────────────────────────────────────┘ │
│ │
│ ┌──────────────────────────────────────────────────┐ │
│ │ 💾 Shared State Hub (SSoT) │ │
│ │ │ │
│ │ • Global context repository │ │
│ │ • Inter-user data sharing │ │
│ │ • Real-time state synchronization │ │
│ └──────────────────────────────────────────────────┘ │
└──────────────────────┬───────────────────────────────────┘
│
┌─────────────┴─────────────┐
│ │
┌────▼────┐ ┌──────▼──────┐
│ Redis │ │ PostgreSQL │
│ (Cache) │ │ (Persist) │
└─────────┘ └─────────────┘
User1+Claude ─────► AICP Hub ─────► User2+GPT
▲ │ │
│ ▼ ▼
└──── Shared Context (SSoT) ◄──────┘
# 1. Clone repository
git clone https://github.com/your-username/AICP-Protocol.git
cd AICP-Protocol
# 2. Run setup script
chmod +x setup-aicp.sh
./setup-aicp.sh
# 3. Verify services
docker ps
curl http://localhost:8080/health
# Basic setup
docker-compose up -d
# Full stack with monitoring
docker-compose -f docker/docker-compose.secure.yml --profile monitoring up -d
import asyncio
import websockets
import json
async def test_connection():
uri = "ws://localhost:8765/mcp"
async with websockets.connect(uri) as ws:
# Initialize
await ws.send(json.dumps({
"jsonrpc": "2.0",
"id": 1,
"method": "initialize",
"params": {"clientInfo": {"name": "test", "version": "1.0"}}
}))
response = await ws.recv()
print("Connected:", response)
asyncio.run(test_connection())
# Route to optimal AI agent
await ws.send(json.dumps({
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "route_to_agent",
"arguments": {
"message": "Analyze this complex dataset",
"target_capabilities": ["analysis", "reasoning"]
}
}
}))
# Share context between AI agents
await ws.send(json.dumps({
"jsonrpc": "2.0",
"id": 3,
"method": "tools/call",
"params": {
"name": "share_context",
"arguments": {
"context_key": "project_status",
"context_value": {"phase": "development", "progress": 75}
}
}
}))
| Tool Name | Description | Parameters |
|---|---|---|
route_to_agent |
Route message to optimal AI agent | message, target_capabilities, context |
share_context |
Share context between agents | context_key, context_value |
orchestrate_collaboration |
Orchestrate multi-agent collaboration | task, agents |
Team Member A (Claude) → "Start project proposal"
↓
AICP Hub → Distributes tasks
↓
Team Member B (GPT-4) → "Market research"
Team Member C (Gemini) → "Technical specifications"
↓
AICP Hub → Integrates results
↓
Shared document for all team members
http://localhost:8080/healthhttp://localhost:8080/metricshttp://localhost:9090 (optional)http://localhost:3001 (optional)# MCP Server Configuration
HOST=0.0.0.0
PORT=8765
HTTP_PORT=8080
# Redis Configuration
REDIS_URL=redis://redis:6379/0
# Logging
LOG_LEVEL=INFO
# Security (Production)
JWT_REQUIRED=true
JWT_SECRET=your-secret-key
# With database
docker-compose --profile db up -d
# With monitoring
docker-compose --profile monitoring up -d
# With proxy
docker-compose --profile proxy up -d
AICP-Protocol/
├── aicp/ # Core library
│ ├── __init__.py
│ ├── mcp_server.py # MCP server implementation
│ ├── neural_bus.py # Routing engine
│ ├── shared_state.py # SSoT implementation
│ └── security.py # Security module
├── docker/ # Docker configuration
│ ├── Dockerfile.mcp
│ ├── docker-compose.secure.yml
│ └── nginx/ # Proxy configuration
├── examples/ # Usage examples
│ ├── basic_routing.py
│ └── collaboration.py
├── tests/ # Tests
├── docs/ # Documentation
├── scripts/ # Utilities
├── setup-aicp.sh # Setup script
├── requirements.txt # Python dependencies
└── README.md # This document
# Unit tests
python -m pytest tests/
# Integration tests
python examples/basic_routing.py
python examples/collaboration.py
# Load testing
python tests/load_test.py
See SECURITY.md for details
We welcome contributions! Please follow these steps:
git checkout -b feature/AmazingFeature)git commit -m 'Add some AmazingFeature')git push origin feature/AmazingFeature)MIT License - See LICENSE file for details
If you use AICP in your research or project, please cite:
BibTeX:
@software{aicp2025protocol,
title = {AICP: AI Inter-Communication Protocol - Building the Intelligence Internet},
author = {AHN SANGHYO},
year = {2025},
url = {https://github.com/hungryangel/AICP-Protocol},
note = {An open protocol for multi-user LLM collaboration networks}
}
APA Style: hungryangel. (2025). AICP: AI Inter-Communication Protocol [Computer software]. GitHub. https://github.com/hungryangel/AICP-Protocol
⭐ If this project helps you, please give it a star!
Made with ❤️ by the AICP Team