YodMCP
A production-oriented Agent Operating System kernel that provides multi-graph memory, durable tasks, portable skills, attestation, and plan-based monetization for MCP-based agents.
README
YodMCP — Agent Operating System
YodMCP is a production-oriented Agent Operating System kernel on MCP: multi-graph memory, Tasks, Skills, A2A, attestation (software / simulated TEE), OpenTelemetry, and plan-based monetization.
This README is written so a senior engineer with only this file + the source tree can install, deploy every surface, exercise features, and verify end-to-end.
Package surfaces
| Surface | Command | Default | Purpose |
|---|---|---|---|
| MCP | yodmcp |
stdio | Local MCP clients (Cursor, Claude Desktop, etc.) |
| MCP HTTP | yodmcp --http --port 8000 |
:8000/mcp |
Remote / Streamable HTTP MCP |
| API | yodmcp-api --port 8080 |
:8080 |
REST health, memory, audit, skills, billing |
| A2A | yodmcp-a2a --port 9000 |
:9000 |
Agent Card, message, tasks |
| SDK | from yodmcp.sdk import YodClient |
HTTP client | Thin client for the API |
| Skills | skills:// + skills/*/SKILL.md |
auto-loaded | Agent Skills as MCP resources |
| Verify | pytest + scripts/verify_e2e.py |
CI | Substrate + durable + TEE modes |
Requirements
- Python 3.11 or 3.12 (3.10+ declared; CI covers 3.11/3.12)
- Optional: Docker for multi-service compose
Install
git clone https://github.com/ANAMIZED/YodMCP.git
cd YodMCP
python -m venv .venv && source .venv/bin/activate # recommended
pip install -e ".[dev]"
Copy environment defaults:
cp .env.example .env
| Variable | Default | Meaning |
|---|---|---|
YODMCP_MEMORY_BACKEND |
memory |
memory | sqlite | durable |
YODMCP_MEMORY_DB |
./data/yodmcp_memory.db |
SQLite path when durable |
YODMCP_ATTEST_MODE |
software |
software | simulated_tee | nitro | sgx |
YODMCP_PLAN |
free |
free | pro | enterprise |
YODMCP_TENANT_ID |
default |
Soft quota tenant key |
YODMCP_SKILLS_DIR |
(auto) | Override skills root |
STRIPE_SECRET_KEY |
unset | Enables live Checkout Sessions |
TEE honesty:
nitro/sgxare provider hooks; without real TEE libraries they fall back to simulated claims. Prefersoftwareorsimulated_teefor local verify.
Quick start (local)
# 1) MCP over stdio (attach from an MCP client)
yodmcp
# 2) REST API
yodmcp-api --port 8080
# curl http://127.0.0.1:8080/health
# 3) A2A
yodmcp-a2a --port 9000
# curl http://127.0.0.1:9000/a2a/card
MCP client configuration (stdio)
Cursor — project .cursor/mcp.json or global MCP settings:
{
"mcpServers": {
"yodmcp": {
"command": "yodmcp",
"args": [],
"env": {
"YODMCP_MEMORY_BACKEND": "memory",
"YODMCP_PLAN": "free",
"YODMCP_ATTEST_MODE": "software"
}
}
}
}
If yodmcp is not on PATH, use the module form:
{
"mcpServers": {
"yodmcp": {
"command": "python",
"args": ["-m", "yodmcp"],
"cwd": "/absolute/path/to/YodMCP",
"env": {
"PYTHONPATH": "src",
"YODMCP_MEMORY_BACKEND": "memory"
}
}
}
}
Claude Desktop — same shape under mcpServers in claude_desktop_config.json.
Streamable HTTP MCP (remote clients that support URL transport):
yodmcp --http --host 0.0.0.0 --port 8000
# endpoint: http://127.0.0.1:8000/mcp
Docker
docker compose up --build
# API :8080 A2A :9000 MCP HTTP :8000
Single API container:
docker build -t yodmcp .
docker run --rm -p 8080:8080 -e YODMCP_PLAN=free yodmcp
Verify end-to-end (no external accounts required)
# Unit + integration
YODMCP_MEMORY_BACKEND=memory YODMCP_ATTEST_MODE=software \
PYTHONPATH=src pytest tests/ -v
# Durable SQLite + simulated TEE
YODMCP_MEMORY_BACKEND=sqlite YODMCP_MEMORY_DB=/tmp/yodmcp.db \
YODMCP_ATTEST_MODE=simulated_tee \
PYTHONPATH=src pytest tests/ -v
# Exhaustive substrate script
PYTHONPATH=src python scripts/verify_e2e.py
Expected: all tests green; script prints ALL E2E CHECKS PASSED.
API smoke (with yodmcp-api running):
curl -s http://127.0.0.1:8080/health
curl -s http://127.0.0.1:8080/api/skills
curl -s http://127.0.0.1:8080/api/billing/plans
curl -s http://127.0.0.1:8080/api/billing/status
SDK:
python examples/sdk_quickstart.py # requires API on :8080
MCP tools (catalog)
| Tool | Description |
|---|---|
memory_write |
Persist into multi-graph hierarchical memory |
memory_read |
Retrieve with embedding similarity |
memory_consolidate |
Promote high-importance episodic to semantic |
memory_stats |
Node/edge counts |
tasks_create / tasks_get / tasks_cancel / tasks_stats |
Durable async task handles |
skills_list |
List Agent Skills (+ resource URIs) |
a2a_card |
A2A Agent Card JSON |
plan_cache_get / plan_cache_put |
Semantic plan cache |
cache_stats |
Cache statistics |
attestation_recent |
Recent TRACE-style claims |
audit_recent |
Recent policy/audit events |
discover_capabilities |
Progressive discovery of tools + skills |
echo |
Connectivity probe |
Resources:
skills://{name}— skill markdown bodyyodmcp://agent-card— agent card JSON
Skills
Built-in skills are always registered. Disk skills under skills/*/SKILL.md are loaded automatically (override via YODMCP_SKILLS_DIR). Repo ships:
memory-hygiene,safe-tool-use,funding-usdc,repo-bootstrap- Plus built-in
long-horizon-planning
Monetization
| Plan | $/mo | Tool calls/day | Durable | TEE |
|---|---|---|---|---|
| Free | 0 | 500 | — | — |
| Pro | 49 | 50k | yes | simulated |
| Enterprise | 499 | unlimited | yes | Nitro/SGX hooks |
- Soft quotas via tool gate; upgrade messaging on exhaustion
- Live Stripe Checkout when
STRIPE_SECRET_KEYis set; otherwise checkout returnsstatus: payment_link
| Plan | Link |
|---|---|
| Pro | https://buy.stripe.com/bJe3cw0kCaLrbVz1AY43S09 |
| Enterprise | https://buy.stripe.com/9B68wQ1oGcTz9NrfrO43S0a |
Non-custodial USDC (preferred for agents)
| Network | Address |
|---|---|
| Base | 0xD3d0E9eDAe3Ac7bb199a8EAA761BdA423b878438 |
| Ethereum | 0xD3d0E9eDAe3Ac7bb199a8EAA761BdA423b878438 |
| Solana | ETQwWf19axArsY493UfC6bxe2BmEzmzvCb58PPnC38A |
Canonical: funding/addresses.json
Project layout
src/yodmcp/ # package (src-layout)
core/ # server, substrate, context
memory/ # in-memory + durable SQLite multi-graph
tools/ # MCP tool registration + gate
tasks/ skills/ cache/ security/ observability/ monetization/
api/ a2a/ sdk/
skills/*/SKILL.md # portable Agent Skills (loaded at runtime)
scripts/verify_e2e.py
tests/
docs/ARCHITECTURE.md
Known limitations (read before claiming production)
- Plan cache uses lightweight embeddings; default similarity threshold is 0.68 (not production vector search).
- TEE Nitro/SGX are hooks with simulated fallback unless you wire real providers.
- Frontend
src/yodmcp/frontend/dashboard.pystill uses legacycore.runtimeand is not the primary control plane — useyodmcp-api+ MCP tools. - Quotas are soft (in-process meter); not a distributed billing ledger.
- Processes do not share in-memory state; use
sqlitebackend + shared volume for multi-process durability.
License
Apache-2.0 · CONTRIBUTING · CHANGELOG · ARCHITECTURE · AGENTS.md
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。