langgraph-clean-arch
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@langgraph-clean-archrun an agent to analyze the latest sales data"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Clean Architecture LangGraph MCP Server
A Model Context Protocol (MCP) server written in Python from scratch using LangGraph for orchestration, structured around the principles of Clean Architecture.
🏛️ Architecture Overview
This project is divided into four concentric layers to enforce the Dependency Inversion Principle (outer layers can import inner layers, but inner layers must NEVER know about outer layers):
[Domain] <-- [Use Cases] <-- [Adapters] <-- [Frameworks]Domain (
src/domain/): Contains core entity dataclasses (Message,ConversationState). Entirely framework-free.Use Cases (
src/usecases/): Application business rules (RunAgentUseCase) and abstract gateway interfaces (AgentGateway,HistoryRepository).Interface Adapters (
src/adapters/): Gateway implementations (InMemoryHistoryRepository) and interface bindings for external communication (McpController).Frameworks & Drivers (
src/frameworks/): External libraries and composition root (LangGraphAgent,config.py,main.py).
Related MCP server: task-orchestrator
🚀 Getting Started
1. Requirements
Python >= 3.13
2. Set Up Virtual Environment (Already Done)
The virtual environment has already been created in this folder at .venv. To activate it:
Windows PowerShell:
.venv\Scripts\Activate.ps1Windows CMD:
.venv\Scripts\activate.batBash / Git Bash:
source .venv/bin/activate3. Configure API Key
Create a .env file in the project root:
OPENAI_API_KEY=your_openai_api_key_hereNote: If no API key is specified, the application will fallback to Simulation Mode, which lets you test the execution pipeline locally without incurring cost or requiring keys.
4. Running the Verification Test
Verify the layers and data flow run properly inside the virtual environment:
python test_app.py5. Running the MCP Server
To execute the server via the stdio transport protocol:
python src/main.pyNote: Normal logs are written to sys.stderr to avoid corrupting the protocol communication channel on stdout.
🔌 Connecting to Host Clients
Claude Desktop
Add this server to your Claude Desktop config file (located at %APPDATA%\Claude\claude_desktop_config.json):
{
"mcpServers": {
"langgraph-clean-arch": {
"command": "C:\\Users\\faria\\.gemini\\antigravity-ide\\scratch\\mcp-langgraph-clean-arch\\.venv\\Scripts\\python.exe",
"args": ["C:\\Users\\faria\\.gemini\\antigravity-ide\\scratch\\mcp-langgraph-clean-arch\\src\\main.py"]
}
}
}Cursor
Go to Settings > Features > MCP:
Click + Add New MCP Server.
Set Name to
langgraph-clean-arch.Set Type to
command.Set Command to:
C:\Users\faria\.gemini\antigravity-ide\scratch\mcp-langgraph-clean-arch\.venv\Scripts\python.exe C:\Users\faria\.gemini\antigravity-ide\scratch\mcp-langgraph-clean-arch\src\main.pyClick Save and verify the status shows active green.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityCmaintenanceMCP server for cross-platform agent onboarding. Registers external agents, translates intents from LangChain, CrewAI, AutoGen, and A2A formats, and proxies cross-ecosystem transactions.MIT
- Alicense-qualityAmaintenanceServer-enforced workflow discipline for AI agents. An MCP server providing persistent work items, dependency graphs, quality gates, and actor attribution. Schemas define what agents must produce — the server blocks the call if they don't. Works with any MCP-compatible client.199MIT
- Alicense-qualityDmaintenanceA LangGraph-powered MCP server for infrastructure orchestration with autonomous subagents.Apache 2.0
- Alicense-qualityAmaintenanceMCP server that enables AI agents to run a deterministic orchestration loop with decomposition, subagent execution, and review feedback across multiple LLM backends.53MIT
Related MCP Connectors
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
Control plane for autonomous software labor. Agents claim objectives over MCP with audit trail.
MCP server exposing the Backtest360 engine API as tools for AI agents.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/FranciscoValadao/mcp-langgraph-clean-arch'
If you have feedback or need assistance with the MCP directory API, please join our Discord server