1. Conduid
  2. Data
  3. Fastapi MCP Langgraph Template
MCP server · Data

Fastapi MCP Langgraph Template

A modern template for agentic orchestration—designed for rapid iteration and scalable deployment, using highly customizable, community-supported tools like MCP, LangGraph, and more.

74Good

Scored 5 hours ago · breakdown

About Fastapi MCP Langgraph Template

Fastapi MCP Langgraph Template is an MCP server published by NicholasGoh in the Data category: a modern template for agentic orchestration—designed for rapid iteration and scalable deployment, using highly customizable, community-supported tools like MCP, LangGraph, and more. It has been installed 0 times through Conduid.

The repository has 536 stars and 78 forks, with the last commit a year ago. Six months or more without a commit doesn't mean the server is broken, but check the open issues (0) before depending on it in production.

Install

Install
npx fastapi-mcp-langgraph-template

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

Ask AI about Fastapi MCP Langgraph Template

Powered by Claude · Grounded in docs

I know everything about Fastapi MCP Langgraph Template. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ·README presentNot checked yet.
  • ·License declaredNot checked yet.
  • ·Tests presentNot checked yet.
  • ·Dependencies pinnedNot checked yet.
  • ·No dynamic code executionNot checked yet.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

Releases

v1.0.1v1.0.1
v1.0.0v1.0.0

README

MseeP.ai Security Assessment Badge

FastAPI MCP LangGraph Template

A modern template for agentic orchestration — built for rapid iteration and scalable deployment using highly customizable, community-supported tools like MCP, LangGraph, and more.

Visit the Github: FastAPI MCP LangGraph Template FastAPI MCP LangGraph Template

[!NOTE] Read the docs with demo videos here. This repo will not contain demo videos.

Core Features

MCP Client is an open protocol that standardizes how apps provide context to LLMs.

  • Seamlessly integrates LLM with growing list of community integrations found here MCP Server
  • No LLM provider lock in

LangGraph for Customizable Agentic Orchestration

  • Native streaming for UX in complex Agentic Workflows
  • Native persisted chat history and state management

Technology Stack and Features

  • FastAPI for Python backend API
  • SQLModel for Python SQL database interactions (ORM + Validation).
    • Wrapper of SQLAlchemy
  • LangFuse for LLM Observability and LLM Metrics
  • Pydantic for Data Validation and Settings Management.
  • Supabase for DB RBAC
    • PostgreSQL Relational DB
    • PGVector Vector Store
  • Nginx Reverse Proxy
  • Compose for development and production.

Planned Features

  • Prometheus for scraping Metrics
  • Grafana for visualizing Metrics
  • Auth0 SaaS for Authentication and Authorization with OIDC & JWT via OAuth 2.0
  • CI/CD via Github Actions
    • :dollar: Deploy live demo to Fargate
    • Provision with Terraform IaC
    • Push built images to ECR and Dockerhub

Architecture

This section outlines the architecture of the services, their interactions, and planned features.

Inspector

Inspector communicates via SSE protocol with each MCP Server, while each server adheres to MCP specification.

graph LR

  subgraph localhost
    A[Inspector]
    B[DBHub Server]
    C[Youtube Server]
    D[Custom Server]
  end

  subgraph Supabase Cloud
    E[Supabase DB]
  end

  subgraph Google Cloud
    F[Youtube API]
  end

  A<-->|Protocol|B
  A<-->|Protocol|C
  A<-->|Protocol|D
  B<-->E
  C<-->F

Template Setup

The current template does not connect to all MCP servers. Additionally, the API server communicates with the database using a SQL ORM.

graph LR

  subgraph localhost
    A[API Server]
    B[DBHub Server]
    C[Youtube Server]
    D[Custom Server]
  end

  subgraph Supabase Cloud
    E[Supabase DB]
  end

  A<-->|Protocol|D
  A<-->E

Reverse Proxy

Can be extended for other services like Frontend and/or certain backend services self-hosted instead of on cloud (e.g., Langfuse).

graph LR
  A[Web Browser]

  subgraph localhost
    B[Nginx Reverse Proxy]
    C[API Server]
  end

  A-->B
  B-->C

Planned Features Diagrams

Monitoring and Observability

graph LR

  subgraph localhost
    A[API Server]
  end

  subgraph Grafana Cloud
    B[Grafana]
  end

  subgraph Langfuse Cloud
    C[Langfuse]
  end

  A -->|Metrics & Logs| B
  A -->|Traces & Events| C

Authentication and Authorization

Auth0 Diagram

Auth0 Source

Quick Start

Setup to run the repository in both production and development environments.

Build community youtube MCP image with:

./community/youtube/build.sh

:::tip

Instead of cloning or submoduling the repository locally, then building the image, this script builds the Docker image inside a temporary Docker-in-Docker container. This approach avoids polluting your local environment with throwaway files by cleaning up everything once the container exits.

:::

Then build the other images with:

docker compose -f compose-dev.yaml build

Copy environment file:

cp .env.sample .env

Add your following API keys and value to the respective file: ./envs/backend.env, ./envs/youtube.env and .env.

OPENAI_API_KEY=sk-proj-...
POSTGRES_DSN=postgresql://postgres...

LANGFUSE_PUBLIC_KEY=pk-lf-...
LANGFUSE_SECRET_KEY=sk-lf-...
LANGFUSE_HOST=https://cloud.langfuse.com

ENVIRONMENT=production

YOUTUBE_API_KEY=...

Set environment variables in shell: (compatible with bash and zsh)

set -a; for env_file in ./envs/*; do source $env_file; done; set +a

Start production containers:

docker compose up -d

Development

First, set environment variables as per above.

VSCode Devcontainer

:::warning

Only replace the following if you plan to start debugger for FastAPI server in VSCode.

:::

Replace ./compose-dev.yaml entrypoint to allow debugging FastAPI server:

  api:
    image: api:prod
    build:
      dockerfile: ./backend/api/Dockerfile
    # highlight-next-line
    entrypoint: bash -c "sleep infinity"
    env_file:
      - ./envs/backend.env

Then:

code --no-sandbox .

Press F1 and type Dev Containers: Rebuild and Reopen in Container to open containerized environment with IntelliSense and Debugger for FastAPI.

Without VSCode Devcontainer

Run development environment with:

docker compose -f compose-dev.yaml up -d

Debugging

Sometimes in development, nginx reverse proxy needs to reload its config to route services properly.

docker compose -f compose-dev.yaml exec nginx sh -c "nginx -s reload"

Refactored Markdown Files

The following markdown files provide additional details on other features:

MCP

./docs/mcp.md

LangGraph

./docs/langgraph.md

Supabase

./docs/supabase.md

Langfuse

./docs/langfuse.md

Grafana Stack

./docs/grafana-stack.md

Star History Chart

[!NOTE] Click above to view live update on star history as per their article: Ongoing Broken Live Chart you can still use this website to view and download charts (though you may need to provide your own token).

README mirrored from the source repository 5 hours ago. The original is authoritative.

Questions

About Fastapi MCP Langgraph Template

How do I install Fastapi MCP Langgraph Template?

Run npx fastapi-mcp-langgraph-template, then add the server to your MCP client's configuration. Conduid has recorded 0 installs, so the command is known to work with current clients.

Is Fastapi MCP Langgraph Template safe to use with an AI agent?

Its trust score is 74 out of 100 (good). It passes 0 of 1 static security checks; the failures are listed above. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Fastapi MCP Langgraph Template still maintained?

The last commit was a year ago, with 0 open issues. That's long enough that you should check whether the maintainer is responding to issues before depending on it.