mcpField
M
MCP Agent Graph (MAG)

MCP Agent Graph (MAG)

github.com/keta1930Frameworks & SDKs237Updated 2w ago

About MCP Agent Graph (MAG)

MCP Agent Graph (MAG) is an agent development framework built on graphs, nodes and MCP for assembling multi-agent systems. It combines sub-agents, long-term memory and workflows in a visual editor, aimed at developers building complex agent applications.

Key features

  1. 01Visual drag-and-drop workflow editor
  2. 02Nested subgraphs for modular reuse
  3. 03Node-based smart routing through handoffs
  4. 04Scheduled runs with cron expressions
  5. 05Short-term and long-term memory management
  6. 06External tool and data source integration via MCP

Use cases

  1. 01Building multi-stage workflows with several agents
  2. 02Running graph workflows on a recurring schedule
  3. 03Connecting databases or APIs to agents

MCP support

This project acts as an MCP client that connects to external tools and data sources through the standard protocol. MCP server connections are managed from its MCP management page.

Details

From the project README

English | 中文

Agent-Graph is a Multi-Agent System built on the principles of Context Engineering. It integrates Sub-agent, Long-term Memory, MCP, Agent-based Workflow, and other capabilities. By integrating Context Engineering best practices into a visual development experience, Agent-Graph enables developers to rapidly build, test, and deploy complex multi-agent applications.

Documentationhttps://keta1930.github.io/agent-graph/

Table of Contents

  1. Framework
  2. Deployment Guide
  3. Core Features
  4. Future Roadmap
  5. Frontend Feature Showcase
  6. Citation
  7. WeChat Group

1. Framework

System Architecture

Agent Graph System Framework

User Journey

User Journey

2. Deployment Guide

📖 Detailed Installation Documentation: docs/first-steps/install.md

System Requirements
ComponentRequirement
Operating SystemLinux, macOS, or Windows (requires WSL2)
DockerVersion 20.10+ with Docker Compose
PythonVersion 3.11+
MemoryMinimum 4GB (8GB recommended)
StorageAt least 10GB available space
Quick Start
2.1. Clone Project
git clone https://github.com/keta1930/agent-graph.git
cd agent-graph
2.2. Configure and Start Docker Services
cp .env.example .env
# Set all blank credentials and secrets before startup
python agent_graph/scripts/generate_jwt_secret.py
docker compose --env-file .env -f docker/docker-compose.yml up -d

Default Service Addresses:

2.3. Deploy Backend

Using uv (Recommended):

uv sync
uv run --env-file .env fastapi run

Using pip:

pip install -r requirements.txt
dotenv -f .env run -- fastapi run

Run in Background:

nohup uv run --env-file .env fastapi run > app.log 2>&1 &
2.4. Access Application

Open the address configured by PUBLIC_API_BASE_URL (default: http://localhost:20050).

Login Page (Admin login with username and password configured in .env):

Login Page

Registration Page (New users can register with invitation code):

Registration Page

Other Access Endpoints:

Frontend Development (Optional)

If you need to modify frontend code:

cd frontend
npm install
npm run dev  # Uses FRONTEND_PORT from the root .env
npm run build  # Build production version

Note: The repository includes pre-built frontend files. This step is only needed when developing or customizing the frontend.

3. Core Features

Core Components
FeatureDescriptionDocumentation
AgentAI entities with capabilities to understand goals, use tools, iterate optimization, maintain context and long-term memory, solving open-ended tasks through autonomous action executionAgent Docs
Graph (Workflow)Orchestrate multiple agents into structured workflows, defining execution flow through nodes and edges, suitable for predictable multi-stage tasksGraph Docs
ModelSupport for LLM and VLM models (OpenAI compatible), flexible API Key configurationModel Docs
MemoryShort-term memory maintains conversation context, long-term memory stores user preferences and Agent knowledge base across sessionsMemory Docs
Prompt CenterCentralized management of reusable Prompt templates, supporting categorization, import/export, and cross-project referencesPrompt Docs
ProjectsOrganize conversations into collections with shared filesProjects Docs
Workflow Capabilities
FeatureDescriptionDocumentation
Visual Graph EditorFrontend drag-and-drop workflow design, supporting linear, parallel, conditional, and nested graph types, WYSIWYGGraph Docs
Subgraph NestingUse entire Graphs as single nodes for nesting, enabling modular, reusable, and hierarchical workflow constructionSubgraph Docs
Handoffs (Smart Routing)Nodes dynamically select next execution node, supporting intelligent decisions, conditional branching, and iterative optimization loopsHandoffs Docs
Task (Scheduling)Scheduled or periodic automatic Graph execution, supporting cron expressions, concurrent instances, and execution history trackingTask Docs
Extension Capabilities
FeatureDescriptionDocumentation
MCP Protocol IntegrationConnect external tools and data sources (databases, APIs, file systems, cloud services, etc.) through standardized protocol, connect once and use everywhereMCP Docs
Built-in Tool SetProvides resource creation (Agent Creator, Graph Designer, MCP Builder, Prompt Generator, Task Manager), collaboration (Sub-agent, File Tool), and query (Memory Tool, System Operations) system toolsTools Docs
Collaboration & Management
FeatureDescriptionDocumentation
Team CollaborationAdmins create invitation codes, manage team members, assign role permissions (Super Admin, Admin, Regular User)Team Management
Conversation ManagementSupport conversation history viewing, file attachment management, and session context maintenanceQuick Start

4. Future Roadmap

📖 Complete Roadmap: docs/roadmap/index.md

The platform continues to evolve, bringing more powerful Agent capabilities and better collaboration experiences to users.

Recently Implemented

The following features have been recently implemented and are now available:

FeatureCore ValueDocumentation
Multimodal SupportVLM gives Agents visual understanding capabilitiesDetails
ProjectsOrganize conversations into collections with shared resourcesDetails
Coming Soon

The following features are coming soon or actively under development:

FeatureCore ValueDocumentation
Team Resource SharingShare Agents, workflows, and Prompts within teamsDetails
Agent SkillsProgressive context engineering to improve efficiency and capabilitiesDetails
Future Plans

These features are under continuous exploration and planning:

FeatureCore ValueDocumentation
External Agent APIOpen Agents to external calls, building a service ecosystemDetails
User AnalyticsEffect evaluation and team insightsDetails

5. Frontend Feature Showcase

5.1. Chat Welcome Page

Entry interface for starting conversations with Agents, supporting quick selection of preset Agents or creating new conversations.

Chat Welcome Page


5.2. Workspace - Agent Management

Create, configure, and manage agents, set system prompts, tools, and model parameters.

Agent Management


5.3. Workspace - Workflow Management

Visual drag-and-drop workflow designer, supporting multiple node types and complex process orchestration.

Workflow Management


5.4. Workspace - Model Management

Configure and manage multiple LLM models, set API Keys and model parameters.

Model Management


5.5. Workspace - System Toolbox

View and configure built-in system tools, including resource creation and collaboration tools.

System Toolbox


5.6. Workspace - MCP Management

Manage MCP server connections, configure external tool and data source integrations.

MCP Management


5.7. Workspace - Prompt Management

Centrally manage reusable Prompt templates, supporting categorization and version control.

Prompt Management


5.8. Workspace - File Management

Manage uploaded files and attachments, supporting file preview and organization.

File Management


5.9. Workspace - Memory Management

View and manage Agent's long-term memory and knowledge base.

Memory Management


6. Citation

If you find Agent-Graph helpful for your research or work, please consider citing it:

@misc{agent_graph_2025,
  title        = {agent-graph},
  author       = {Yan Yixin},
  howpublished = {\url{https://github.com/keta1930/agent-graph}},
  note         = {Accessed: 2025-04-24},
  year         = {2025}
}

7. Contact

For questions, suggestions, or collaboration inquiries, feel free to reach out:

📧 Email: [email protected]

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.