Skip to content

About

Autonomous LLM Tool-Orchestration & Governance Platform connecting LangChain & FastAPI with Model Context Protocol (MCP) servers, WebSockets telemetry & RBAC.

Topics

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Latest commit

Β 

History

47 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Agent Bridge Logo

Agent Bridge

A modular AI agent platform connecting LangChain & FastAPI with Model Context Protocol (MCP) servers.

Awesome MCP Clients License: MIT Python 3.12+ Vue 3 FastAPI Documentation



🌟 Featured in Awesome MCP Clients

Agent Bridge is officially added to the Awesome MCP Clients repository!

Model Context Protocol (MCP) enables seamless interoperability between AI models and external tools & data sources. Agent Bridge provides an end-to-end, production-ready platform to manage, authenticate, and execute tools across multiple MCP servers.


🎬 Video Preview

tutorial.mp4

πŸš€ Key Features

  • πŸ€– AI Agent Orchestration: LangChain & LangGraph state machine integration on top of a robust FastAPI backend.
  • πŸ”Œ Multi-Server MCP Support: Seamlessly register, manage, and execute tools across various Model Context Protocol servers.
  • πŸ” Authentication & Security: Secure JWT user management, bcrypt password hashing, and OAuth 2.0 with PKCE (Figma, Notion, GitHub).
  • πŸ›‘οΈ Human-in-the-Loop Permissions: Fine-grained tool execution controls and permission requests.
  • 🎨 Modern Web Interface: Responsive Vue 3 frontend using Vite, Tailwind CSS, and Element Plus components.
  • ⚑ Live Real-time Streaming: SSE (Server-Sent Events) and WebSocket pipelines for agent interaction streaming.
  • πŸ—„οΈ Flexible Database Layer: PostgreSQL database powered by SQLAlchemy ORM with SQLite local dev support.

πŸ“š Documentation

🌐 Official Documentation: https://ramblinghermit0403.github.io/agent_bridge/

Resource Description
πŸ”Œ Supported MCP Servers Setup guide for Figma, GitHub, Notion, and custom servers
πŸ€– LLM Providers Configuration for Gemini, OpenAI, Pinecone, and AWS Bedrock
πŸ—οΈ Architecture Guide In-depth breakdown of system design and agent flows
🧩 Platform Expansion Step-by-step guide to adding new servers and providers
🧠 Prompts & Agent Core Customizing agent behavior, persona, and memory system

πŸ“ Project Structure

agent_bridge/
β”œβ”€β”€ backend/                # FastAPI backend server
β”‚   β”œβ”€β”€ app/
β”‚   β”‚   β”œβ”€β”€ routes/         # API routes & endpoints
β”‚   β”‚   β”œβ”€β”€ services/       # Core business logic & agent services
β”‚   β”‚   β”œβ”€β”€ models/         # Database models (SQLAlchemy)
β”‚   β”‚   β”œβ”€β”€ schemas/        # Data schemas (Pydantic)
β”‚   β”‚   β”œβ”€β”€ auth/           # Authentication & JWT services
β”‚   β”‚   β”œβ”€β”€ database/       # DB configuration & connections
β”‚   β”‚   └── core/           # Utility modules & helpers
β”‚   β”œβ”€β”€ pyproject.toml      # UV dependency management
β”‚   └── requirements.txt    # Standard pip requirements
β”‚
β”œβ”€β”€ client/                 # Vue.js 3 frontend application
β”‚   β”œβ”€β”€ src/
β”‚   β”‚   β”œβ”€β”€ view/           # Vue page views
β”‚   β”‚   β”œβ”€β”€ components/     # Reusable UI components
β”‚   β”‚   β”œβ”€β”€ router.js       # Vue Router configuration
β”‚   β”‚   └── main.js         # Frontend entry point
β”‚   └── package.json        # Node.js dependencies
β”‚
β”œβ”€β”€ docs/                   # VitePress documentation site
β”œβ”€β”€ docker-compose.yml      # Multi-container deployment config
β”œβ”€β”€ LICENSE                 # MIT License
└── CONTRIBUTING.md         # Contribution guidelines

βš™οΈ Prerequisites

Ensure you have the following installed prior to setup:

  • 🐍 Python 3.12+
  • πŸ“¦ Node.js 20+
  • 🐳 Docker & Docker Compose (Optional, recommended for quick deployment)

⚑ Quick Start (Docker)

Launch the entire stack with a single command using Docker Compose:

  1. Clone the repository:

    git clone https://github.com/ramblinghermit0403/agent_bridge.git
    cd agent_bridge
  2. Configure Environment Variables: Create a .env file inside backend/ (or server/ depending on setup):

    cp backend/.env.example backend/.env

    Add your API credentials (e.g., GOOGLE_API_KEY, OPENAI_API_KEY).

  3. Spin up services:

    docker-compose up --build
    • Frontend UI: http://localhost:80
    • Backend API: http://localhost:8001
    • PostgreSQL: localhost:5432

πŸ› οΈ Manual Installation (Development)

1. Backend Setup

cd backend
python -m venv .venv
.venv\Scripts\activate.ps1
pip install -r requirements.txt
cp .env.example .env
uvicorn app.main:app --reload --port 8001

The backend API will be available at http://localhost:8001.

2. Frontend Setup

cd client
npm install
npm run dev

The web interface will be accessible at http://localhost:5173.

3. Documentation Setup

cd docs
npm install
npm run docs:dev

The local docs server will run at http://localhost:5173 (or next available port).


πŸ”§ Configuration

MCP Server Registration

To connect your custom MCP servers, update backend/servers.json and run the bootstrap script:

python bootstrap_servers.py your-email@example.com

Database Migrations

Database tables auto-generate upon backend startup. Use SQLAlchemy migrations for custom schema alterations.


πŸ’‘ Open Source Use Cases

Agent Bridge is built as a flexible, modular platform suitable for multiple usage patterns:

1. Full Platform Deployment

Target: Engineering Teams, Startups, Enterprises

Scenario Value Proposition
Internal DevOps Assistant Autonomous agent that interacts with GitHub issues, CI pipelines, and log tools
Customer Support Copilot Connected to CRM, ticketing systems, and knowledge base MCP servers
Self-Hosted Workflows Complete data privacy with zero SaaS vendor lock-in

2. Learning & Education

Target: Developers learning Agentic AI & MCP

Concept Location in Codebase
LangGraph State Machines agent_orchestrator.py β€” StateGraph edge routing
Human-in-the-Loop human_review_node β€” Approval interrupt logic
Dynamic Tooling tools.py β€” Dynamic MCP tool factory
SSE Response Streaming streaming.py β€” FastAPI EventSourceResponse pipelines

3. Modular Extraction

Target: Product Developers

Module Purpose
llm_factory.py Universal multi-provider LLM client wrapper
MCPConnector Standalone MCP client integration for any Python framework
Tool Permission System Portable approval flow logic

4. MCP Server Testing & Sandbox

Target: Tool Developers & Authors

Task Workflow
Tool Discovery Validate schema parsing and UI rendering
OAuth Debugging Test authentication callbacks and token refresh handling
Benchmark Tooling Measure real agent invocation latency under load

πŸ› οΈ Technology Stack

Layer Technologies
Backend Framework FastAPI, Python 3.12+, Pydantic
Agent Core LangChain, LangGraph, Model Context Protocol (MCP) SDK
Database & Cache PostgreSQL, SQLAlchemy ORM, Redis
Frontend Framework Vue.js 3, Vite, Tailwind CSS, Element Plus
Auth & Security JWT, bcrypt, OAuth 2.0 + PKCE

πŸ” Security & Governance

  • Encrypted JWT session tokens and secure password hashing.
  • CORS isolation and environment configuration controls.
  • Role-based tool authorization and real-time execution approval requests.

🀝 Contributing

Contributions are welcomed! Check out CONTRIBUTING.md to learn how to get started with bug fixes, feature requests, or documentation improvements.


πŸ“„ License

This project is open-source software licensed under the MIT License.


πŸ™ Acknowledgments


Built with ❀️ for the AI & Open Source Community.

About

Autonomous LLM Tool-Orchestration & Governance Platform connecting LangChain & FastAPI with Model Context Protocol (MCP) servers, WebSockets telemetry & RBAC.

Topics

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages