Fastapi MCP Langgraph Template

Analytics and monitoringDeveloper tools

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

Your AI app calls Fastapi MCP Langgraph Template, which does the analytics and monitoring and developer tools work and sends the result back to the chat.

About Fastapi MCP Langgraph Template

Fastapi MCP Langgraph Template is a community MCP server from NicholasGoh, filed in our directory under analytics and monitoring and developer tools. A modern template for agentic orchestration, built for rapid iteration and scalable deployment using highly customizable, community-supported tools like MCP, LangGraph, and more.

At a glance

Publisher
NicholasGoh (community)
Runs
See the README for setup
Written in
Python
License
MIT
GitHub stars
561

How to set up Fastapi MCP Langgraph Template

  1. Follow the install steps in the Fastapi MCP Langgraph Template README; it is written in Python, so have that toolchain ready.
  2. Check the Fastapi MCP Langgraph Template README for keys or settings; the registry lists none that Fastapi MCP Langgraph Template requires.
  3. Add Fastapi MCP Langgraph Template to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Fastapi MCP Langgraph Template tools to confirm the connection.
  5. Run one read-only task with Fastapi MCP Langgraph Template first, and keep your app asking before each tool call until the results look right.

Fastapi MCP Langgraph Template compared with similar servers

  • Prometheus by pab1it0 has fewer GitHub stars than Fastapi MCP Langgraph Template (527 against 561); both are community servers, and both run locally.
  • Ratel by ratel-ai has more GitHub stars than Fastapi MCP Langgraph Template (581 against 561); both are community servers, and both run locally.
  • MCPSpy by alex-ilgayev has fewer GitHub stars than Fastapi MCP Langgraph Template (523 against 561); both are community servers, and both run locally.

Before you connect Fastapi MCP Langgraph Template

  • Give Fastapi MCP Langgraph Template its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Fastapi MCP Langgraph Template tool call until you trust what it does with them.
  • Treat text that Fastapi MCP Langgraph Template fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Fastapi MCP Langgraph Template on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Fastapi MCP Langgraph Template

How marketing and sales teams put Fastapi MCP Langgraph Template to work, by company size. Pick the size closest to yours and start Fastapi MCP Langgraph Template on one use case.

Small business

  • A small business can ask Fastapi MCP Langgraph Template where this month's customers came from and which channel is worth more budget.
  • Owners can use Fastapi MCP Langgraph Template to get a weekly traffic and conversion summary in plain words, without learning the analytics tool.
  • A small business with a developer can use Fastapi MCP Langgraph Template to ship site and tracking fixes faster, with the AI reading the code it changes.
  • Fastapi MCP Langgraph Template runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Marketing teams can connect Fastapi MCP Langgraph Template to answer attribution and funnel questions in a chat, then save the useful ones as reports.
  • Growth teams can have Fastapi MCP Langgraph Template flag drops in signups or conversion the day they happen, with the page or source that changed.
  • Growth engineers can use Fastapi MCP Langgraph Template to build landing pages, tracking and integrations in fewer cycles, with reviews kept in the normal flow.
  • Start Fastapi MCP Langgraph Template on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprises can expose governed metrics through Fastapi MCP Langgraph Template, so every team's AI answers use the same definitions as finance.
  • Large analytics teams can use Fastapi MCP Langgraph Template to triage anomalies across regions and products before the weekly business review.
  • Enterprise engineering teams can roll out Fastapi MCP Langgraph Template with repo scopes and audit logs, so agents work only where they are allowed.
  • Fastapi MCP Langgraph Template is a community server, so have security review the code and pin a version before Fastapi MCP Langgraph Template touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Fastapi MCP Langgraph Template README

From NicholasGoh/fastapi-mcp-langgraph-template on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

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:

[!NOTE] Read the docs with demo videos nicholas-goh.com/docs. This repo will not contain demo videos.

  • FastAPI MCP LangGraph Template
    • Core Features
      • Technology Stack and Features
      • Planned Features
    • Architecture
      • Inspector
      • Template Setup
      • Reverse Proxy
      • Planned Features Diagrams
        • Monitoring and Observability
        • Authentication and Authorization
    • Quick Start
    • Development
      • VSCode Devcontainer
      • Without VSCode Devcontainer
    • Debugging
    • Refactored Markdown Files
      • MCP
      • LangGraph
      • Supabase
      • Langfuse
      • Grafana Stack

Core Features

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

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

for Customizable Agentic Orchestration

  • Native streaming for UX in complex Agentic Workflows
  • Native persisted chat history and state management
Technology Stack and Features
  • for Python backend API
  • for Python SQL database interactions (ORM + Validation).
    • Wrapper of
  • for LLM Observability and LLM Metrics
  • for Data Validation and Settings Management.
  • for DB RBAC
    • Relational DB
    • Vector Store
  • Reverse Proxy
  • for development and production.
Planned Features
  • for scraping Metrics
  • for visualizing Metrics
  • SaaS for Authentication and Authorization with OIDC & JWT via OAuth 2.0
  • CI/CD via Github Actions
    • :dollar: Deploy live demo to
    • Provision with 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 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

[!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).

Questions about Fastapi MCP Langgraph Template

What is the Fastapi MCP Langgraph Template MCP server?

A modern template for agentic orchestration, built for rapid iteration and scalable deployment using highly customizable, community-supported tools like MCP, LangGraph, and more. Fastapi MCP Langgraph Template is maintained by NicholasGoh on GitHub at NicholasGoh/fastapi-mcp-langgraph-template, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Fastapi MCP Langgraph Template MCP server?

Fastapi MCP Langgraph Template doesn't publish a one-line install in the MCP registry, so follow the setup steps in its README on GitHub (NicholasGoh/fastapi-mcp-langgraph-template). Like most servers, Fastapi MCP Langgraph Template ends with a command or URL you paste into your AI app's MCP config.

Does Fastapi MCP Langgraph Template need an API key?

The registry lists no required keys for Fastapi MCP Langgraph Template. Check the Fastapi MCP Langgraph Template README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Fastapi MCP Langgraph Template an official MCP server?

No. Fastapi MCP Langgraph Template is a community server maintained by NicholasGoh. Community servers can be excellent; read the code and the open issues before you give Fastapi MCP Langgraph Template access to company data.

What license is Fastapi MCP Langgraph Template under?

Fastapi MCP Langgraph Template is released under the MIT license, according to its GitHub repository. The license covers the code of Fastapi MCP Langgraph Template; the service it connects to has its own terms.