Agent Learning MCP Server
A systematic AI Agent development tutorial covering LLM agents, RAG, tool use, memory systems, multi-agent systems, LangChain, LangGraph, MCP, and agentic RL.|从零开始学 AI Agent 开发 | 系统、全面、实战导向的 Agent 开发教程 | 每日自动追踪 arXiv 最新论文 | Learn AI Agent Development from Scratch
Agent Learning is an open-source mcp server by Haozhe-Xing, written mainly in HTML, with 634 GitHub stars and the MIT license. Its code was last updated Oct 24, 2026.
Learn AI Agents from Scratch
A visual, bilingual, and engineering-first textbook for building reliable LLM Agents.
From Function Calling, memory, planning, RAG, and context engineering to Agentic RL, multi-agent systems, evaluation, security, and production deployment.
<p> <a href="https://Haozhe-Xing.github.io/agent_learning/en/"><img src="https://img.shields.io/badge/Read%20Online-English-2ea44f?style=for-the-badge" alt="Read the English book"></a> <a href="https://Haozhe-Xing.github.io/agent_learning/zh/"><img src="https://img.shields.io/badge/在线阅读-中文-d73a49?style=for-the-badge" alt="阅读中文版"></a> </p> <p> <a href="https://github.com/Haozhe-Xing/agent_learning/stargazers"><img src="https://img.shields.io/github/stars/Haozhe-Xing/agent_learning?style=flat-square&logo=github&color=gold" alt="GitHub stars"></a> <a href="LICENSE"><img src="https://img.shields.io/badge/License-MIT-blue?style=flat-square" alt="MIT License"></a> <a href="https://github.com/Haozhe-Xing/agent_learning/pulls"><img src="https://img.shields.io/badge/PRs-welcome-brightgreen?style=flat-square" alt="PRs welcome"></a> <img src="https://img.shields.io/badge/Chapters-23-6f42c1?style=flat-square" alt="23 chapters"> <img src="https://img.shields.io/badge/Languages-English%20%7C%20中文-0969da?style=flat-square" alt="Bilingual"> </p>中文说明 · Complete directory · Runnable reference agent · Contributing
</div>What is this repository?
agent_learning is an open-source AI Agent textbook and learning repository. It is designed for the gap between "I can call an LLM API" and "I can build, evaluate, secure, and deploy an Agent system."
Instead of teaching isolated framework APIs, the book builds one connected mental model:
LLM fundamentals → tools → memory → planning → RAG → context → harness → skills → Agentic RL → multi-agent → evaluation → security → deployment
The repository includes:
- 23 chapters across foundations, core capabilities, frameworks, multi-agent systems, production, and capstone projects.
- 188 Markdown pages per language, maintained in English and Chinese.
- 330+ original SVG diagrams and 5 interactive demos for architecture, state, sequence, and training flows.
- Paper-to-practice explanations covering ReAct, Reflexion, MemGPT/Letta, GraphRAG, GRPO, MCP, A2A, and more.
reference-agent/, a small runnable Agent baseline with tools, memory, security gates, evaluation, an MCP server, a FastAPI service, and 16 tests.
This is not an awesome-list and not a framework manual. It is a structured path from first principles to production engineering.
Complete directory
- Book source
src/en/— English mdBook sourcesrc/zh/— Chinese mdBook sourcesrc/en/SUMMARY.md— English table of contentssrc/zh/SUMMARY.md— Chinese table of contents
- Foundations
- Core capabilities
- Framework practice
- Multi-agent systems
- Production engineering
- Capstone projects
- Appendices
- Runnable implementation
reference-agent/— teaching baseline Agent implementationreference-agent/src/reference_agent/— Agent loop, providers, tools, memory, security, server, evaluationreference-agent/tests/— offline test suite
- Assets and build files
src/en/svg/— English diagramssrc/zh/svg/— Chinese diagramssrc/en/animations/— English interactive demossrc/zh/animations/— Chinese interactive demostheme/— shared mdBook themebook.toml— Chinese mdBook configbook-en.toml— English mdBook configserve.sh— build and serve both books locally
Runnable reference agent
reference-agent/ is the shared, dependency-light implementation behind the hands-on chapters. It includes:
- a minimal ReAct loop and tool registry;
- offline
FakeProviderand optional OpenAI provider; - memory, prompt-injection guardrails, and fail-closed permission checks;
- an MCP server, FastAPI endpoints, streaming, evaluation harness, and Dockerfile;
- 16 tests that run without an API key.
cd reference-agent
python -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"
pytest -q
The implementation is intentionally small enough to read. It is a teaching baseline, not a claim of production completeness.
Feel free to contact the author on WeChat.
<img src="https://assets.with.tencent.com/default/f497918d-1726-441b-9cf2-e7931218bfaa/image-019fe985c3d974bab5dec953f66565d0-01a08b38-41e7-7d63-a565-7b31fdebfc52.png" width="220" alt="WeChat QR code"> </div>Project principles
- Mechanisms before frameworks. Explain why an abstraction exists before teaching its API.
- Visuals must teach. Diagrams carry architecture and process information; they are not decoration.
- Research must lead to engineering insight. Paper notes include contribution, mechanism, use, and limitations.
- Production claims must be honest. Runnable code, tests, security boundaries, and known limitations are stated explicitly.
- Bilingual content stays aligned. Text, diagrams, navigation, and interactive demos are maintained in both languages.
Contributing
Corrections, clearer explanations, runnable examples, translation fixes, and new paper notes are welcome.
- Found an error? Open an issue.
- Want to improve a chapter? Edit the matching file under both
src/en/andsrc/zh/when possible. - Adding a page? Update both
SUMMARY.mdfiles. - Adding a diagram? Place localized assets under
src/en/svg/andsrc/zh/svg/. - Before a PR, run
./serve.shand verify both language builds.
Please keep claims verifiable and prefer primary sources for papers, protocols, versions, and external projects.
Roadmap
- 23-chapter bilingual mdBook
- Localized diagrams and interactive demos
- Agentic RL, context engineering, harness engineering, and self-evolving Agent coverage
- Runnable
reference-agentbaseline with offline tests - More end-to-end capstone implementations
- Searchable diagram gallery and concept index
- Evaluation and observability starter templates
- More exercises, interview questions, and regression cases
Suggestions are welcome in Issues.
License
Released under the MIT License.
<div align="center">If this repository saves you time, consider giving it a Star.
A Star helps more engineers find a structured path through AI Agents instead of another disconnected list of links.
</div>Agent Learning alternatives
View more →Similar mcp servers in Learning Resources, ranked by GitHub stars. Compare licence, recent activity and scan status before you choose.
| Name | Stars | Licence | Last updated | Scan |
|---|---|---|---|---|
| Agent Learning (this page) Haozhe-Xing | 634 | MIT | Oct 24, 2026 | Scanned, no flagged issues |
| Dashboard Icons homarr-labs | 9k | Apache-2.0 | Oct 26, 2026 | Scanned, no flagged issues |
| Ha MCP homeassistant-ai | 5.4k | MIT | Nov 1, 2026 | Scanned, no flagged issues |
| MCP Server Guide figma | 2.1k | None found | Oct 28, 2026 | Not scanned yet |
| Mcpso chatmcp | 2.1k | Apache-2.0 | Oct 25, 2026 | Scanned, no flagged issues |
| MCP MicrosoftDocs | 2k | CC-BY-4.0 | Oct 30, 2026 | Scanned, no flagged issues |