# emarco177/mcp-crash-course architecture

> Architecture diagram of the GitHub repository emarco177/mcp-crash-course, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-04-10). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/emarco177/mcp-crash-course
- Repository: https://github.com/emarco177/mcp-crash-course

## Overview

1. **Repository purpose**
   - This is primarily a **teaching repository**, not a single production application.
   - Its goal is to demonstrate **Model Context Protocol (MCP)** concepts through hands-on examples and guided history across branches.

2. **Core organizational model**
   - The main architectural boundary is **branch-based lessons**.
   - Each `project/*` branch represents one MCP topic, and the commit history inside that branch is the learning path.
   - That means the repo’s “architecture” is more about **curriculum structure** than runtime services.

3. **Top-level runtime footprint**
   - The repository is intentionally small at the root: `server.py`, `pyproject.toml`, `uv.lock`, `Dockerfile`, and `static/`.
   - This suggests a **minimal Python-based example server** plus supporting assets and deployment scaffolding.

4. **Python application entrypoint**
   - `server.py` is the most likely **primary executable entrypoint** for the examples.
   - In an MCP course repo, this typically hosts the server-side MCP implementation that Claude Desktop or another MCP client connects to.
   - Since there is only one obvious Python file at the root, the examples are likely centered around a **single service process** per lesson branch.

5. **Dependency and environment management**
   - `pyproject.toml` and `uv.lock` indicate the project uses **modern Python packaging** with `uv` for dependency resolution and reproducible installs.
   - `.python-version` pins the expected Python runtime, aligning with the README’s stated requirement of Python 3.10+.
   - These files define the execution environment boundary for all lessons.

6. **Containerization layer**
   - The presence of a `Dockerfile` indicates the examples can be run in a **containerized environment**.
   - This matters architecturally because the repo supports both local Python execution and Docker-based packaging, especially relevant for MCP deployment lessons such as `project/docker-mcp`.

7. **Static assets**
   - `static/` holds non-code assets, including the demo GIF referenced in the README.
   - This is a separate content boundary from the MCP implementation itself; it supports documentation and presentation rather than protocol behavior.

8. **Documentation as a first-class component**
   - `README.md` is a major part of the repository’s architecture because it explains the branch workflow, prerequisites, and lesson structure.
   - The repo is designed for **stepwise exploration**, so documentation is not ancillary—it is part of the learning system.

9. **MCP lesson themes represented by branches**
   - The README explicitly calls out topic branches for:
     - `project/sse` for Server-Sent Events transport
     - `project/langchain-mcp-adapters` for adapter integration
     - `project/docker-mcp` for containerization
     - `project/prompts` for MCP prompts via FastMCP 2.0
   - These branches represent **distinct architectural concerns**: transport, integration, packaging, and protocol features.

10. **External ecosystem boundaries**
   - The repo is built around MCP clients and tooling such as **Claude Desktop**, plus the broader LLM application ecosystem.
   - That means the main integration boundary is between the **Python MCP server** and an **external agent/client** that consumes tools, prompts, or SSE streams.

11. **What is not present in the root**
   - There is no evidence of a multi-service backend, database layer, frontend app, or queueing system in the root tree.
   - So the architecture is intentionally narrow: **one Python example server, optional containerization, and tutorial assets**, with feature complexity introduced per branch.

12. **How to diagram this repo**
   - A good architecture diagram would show:
     - The repo as a **course scaffold**
     - Branches as **separate lesson tracks**
     - `server.py` as the **Python MCP server entrypoint**
     - `pyproject.toml` / `uv.lock` / `.python-version` as the **environment definition**
     - `Dockerfile` as the **container boundary**
     - `static/` and `README.md` as **supporting documentation/media**
     - An external **MCP client** such as Claude Desktop connecting to the server

Main entry points: [`README.md`](https://github.com/emarco177/mcp-crash-course/blob/main/README.md) (README), [`server.py`](https://github.com/emarco177/mcp-crash-course/blob/main/server.py) (Server), [`Dockerfile`](https://github.com/emarco177/mcp-crash-course/tree/main/Dockerfile) (Docker build), [`static`](https://github.com/emarco177/mcp-crash-course/tree/main/static) (Static assets)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_group_repo["Repository scaffold"]
  node_repo_root["Course repo<br/>teaching scaffold"]
end

subgraph group_group_runtime["Python runtime"]
  node_server_py["Server<br/>[server.py]"]
  node_pyproject["Python deps<br/>packaging<br/>[pyproject.toml]"]
  node_uv_lock["Lockfile<br/>dependency lock<br/>[uv.lock]"]
  node_python_version["Python version<br/>runtime pin<br/>[.python-version]"]
  node_dockerfile["Docker build<br/>container"]
end

subgraph group_group_lessons["Lesson branches"]
  node_branch_sse(("SSE lesson<br/>branch track"))
  node_branch_adapters(("Adapters lesson<br/>branch track"))
  node_branch_docker(("Docker lesson<br/>branch track"))
  node_branch_prompts(("Prompts lesson<br/>branch track"))
end

subgraph group_group_support["Support assets"]
  node_readme["README<br/>guide<br/>[README.md]"]
  node_license["License<br/>legal"]
  node_static_assets["Static assets<br/>media"]
end

subgraph group_group_external["External ecosystem"]
  node_claude_desktop["MCP client<br/>external client"]
  node_mcp_tooling["MCP tools<br/>ecosystem"]
end

node_repo_root -->|"documents"| node_readme
node_repo_root -->|"contains"| node_server_py
node_repo_root -->|"defines"| node_pyproject
node_repo_root -->|"pins"| node_uv_lock
node_repo_root -->|"pins"| node_python_version
node_repo_root -->|"packages"| node_dockerfile
node_repo_root -->|"ships"| node_static_assets
node_repo_root -->|"includes"| node_license
node_repo_root -.->|"teaches"| node_branch_sse
node_repo_root -.->|"teaches"| node_branch_adapters
node_repo_root -.->|"teaches"| node_branch_docker
node_repo_root -.->|"teaches"| node_branch_prompts
node_server_py -->|"serves"| node_claude_desktop
node_server_py -->|"integrates"| node_mcp_tooling
node_dockerfile -->|"runs"| node_server_py
node_readme -.->|"references"| node_branch_sse
node_readme -.->|"references"| node_branch_adapters
node_readme -.->|"references"| node_branch_docker
node_readme -.->|"references"| node_branch_prompts
node_static_assets -.->|"supports"| node_readme

click node_readme "https://github.com/emarco177/mcp-crash-course/blob/main/README.md"
click node_license "https://github.com/emarco177/mcp-crash-course/tree/main/LICENSE"
click node_server_py "https://github.com/emarco177/mcp-crash-course/blob/main/server.py"
click node_pyproject "https://github.com/emarco177/mcp-crash-course/blob/main/pyproject.toml"
click node_uv_lock "https://github.com/emarco177/mcp-crash-course/blob/main/uv.lock"
click node_python_version "https://github.com/emarco177/mcp-crash-course/blob/main/.python-version"
click node_dockerfile "https://github.com/emarco177/mcp-crash-course/tree/main/Dockerfile"
click node_static_assets "https://github.com/emarco177/mcp-crash-course/tree/main/static"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_repo_root toneBlue
class node_server_py,node_pyproject,node_uv_lock,node_python_version,node_dockerfile toneAmber
class node_branch_sse,node_branch_adapters,node_branch_docker,node_branch_prompts toneMint
class node_readme,node_license,node_static_assets toneRose
class node_claude_desktop,node_mcp_tooling toneIndigo
```

## Components

### Repository scaffold

Top-level teaching repo structure and orientation

- **Course repo**: teaching scaffold · The repository as a curriculum-oriented MCP crash course

### Python runtime

Minimal MCP server implementation and its execution environment

- [Server](https://github.com/emarco177/mcp-crash-course/blob/main/server.py): mcp server · Primary Python entrypoint for the example MCP service · `server.py`
- [Python deps](https://github.com/emarco177/mcp-crash-course/blob/main/pyproject.toml): packaging · Project metadata and dependency definition · `pyproject.toml`
- [Lockfile](https://github.com/emarco177/mcp-crash-course/blob/main/uv.lock): dependency lock · Reproducible Python dependency resolution · `uv.lock`
- [Python version](https://github.com/emarco177/mcp-crash-course/blob/main/.python-version): runtime pin · Pinned Python interpreter version for the course · `.python-version`
- [Docker build](https://github.com/emarco177/mcp-crash-course/tree/main/Dockerfile): container · Container packaging and runtime boundary · `Dockerfile`

### Lesson branches

Branch-based topic tracks used for guided exploration

- **SSE lesson**: branch track · Lesson branch for Server-Sent Events transport
- **Adapters lesson**: branch track · Lesson branch for LangChain MCP adapter integration
- **Docker lesson**: branch track · Lesson branch for containerized MCP deployment
- **Prompts lesson**: branch track · Lesson branch for FastMCP prompts and protocol features

### Support assets

Documentation and static content that support the lessons

- [README](https://github.com/emarco177/mcp-crash-course/blob/main/README.md): guide · Explains the course structure, prerequisites, and branch workflow · `README.md`
- [License](https://github.com/emarco177/mcp-crash-course/tree/main/LICENSE): legal · Repository licensing information · `LICENSE`
- [Static assets](https://github.com/emarco177/mcp-crash-course/tree/main/static): media · Non-code assets used by the documentation and demos · `static`

### External ecosystem

Clients and tooling that connect to the MCP server

- **MCP client**: external client · External agent or desktop client that connects to the server
- **MCP tools**: ecosystem · Broader MCP and LLM tooling ecosystem used by the lessons

## Connections

- Course repo → README: documents · README explains the course structure and branch workflow
- Course repo → Server: contains · Primary Python entrypoint in the repository
- Course repo → Python deps: defines · Project metadata and dependencies
- Course repo → Lockfile: pins · Reproducible dependency resolution
- Course repo → Python version: pins · Interpreter version expected by the course
- Course repo → Docker build: packages · Container build for local or deployed execution
- Course repo → Static assets: ships · Presentation and demo assets
- Course repo → License: includes · Repository licensing
- Course repo → SSE lesson: teaches · Branch-based lesson track
- Course repo → Adapters lesson: teaches · Branch-based lesson track
- Course repo → Docker lesson: teaches · Branch-based lesson track
- Course repo → Prompts lesson: teaches · Branch-based lesson track
- Server → MCP client: serves · MCP server connects to an external client
- Server → MCP tools: integrates · Server participates in the MCP ecosystem
- Docker build → Server: runs · Containerized execution centers on the Python server
- README → SSE lesson: references · Course documentation calls out the branch topic
- README → Adapters lesson: references · Course documentation calls out the branch topic
- README → Docker lesson: references · Course documentation calls out the branch topic
- README → Prompts lesson: references · Course documentation calls out the branch topic
- Static assets → README: supports · Images and media support the guide
