# danielcgithub/mcp_apps_anthropic architecture

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

- Interactive diagram: https://gitdiagram.com/danielcgithub/mcp_apps_anthropic
- Repository: https://github.com/danielcgithub/mcp_apps_anthropic

## Overview

This repository is a lesson-by-lesson course demonstrating rich-context AI applications using Anthropic and MCP. The principal workflow is an interactive chatbot that sends queries to Claude, dispatches requested tools to MCP servers, and returns tool results; later lessons add resource and prompt access, reference-server configuration, and a remotely hosted research server. The graph emphasizes the L7 example, with earlier and remote variants shown separately. Relationships involving unsampled configuration or server wiring are omitted or marked unverified.

Main entry points: [`L7/mcp_project/mcp_chatbot.py`](https://github.com/danielcgithub/mcp_apps_anthropic/blob/main/L7/mcp_project/mcp_chatbot.py) (Context-aware chatbot), [`L7/mcp_project/research_server.py`](https://github.com/danielcgithub/mcp_apps_anthropic/blob/main/L7/mcp_project/research_server.py) (Paper search and lookup), [`L9/mcp_project/research_server.py`](https://github.com/danielcgithub/mcp_apps_anthropic/blob/main/L9/mcp_project/research_server.py) (Remote research server)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_chat["Chatbot client"]
  node_l5_client["Single-server client<br/>[mcp_chatbot.py]"]
  node_l6_client["Multi-server client<br/>[mcp_chatbot.py]"]
  node_l7_client["Context-aware chatbot<br/>[mcp_chatbot.py]"]
end

subgraph group_mcp["MCP capabilities"]
  node_tool_dispatch["Tool dispatch<br/>[mcp_chatbot.py]"]
  node_resource_access["Resource access<br/>[mcp_chatbot.py]"]
  node_prompt_access["Prompt access<br/>[mcp_chatbot.py]"]
end

subgraph group_research["Research server"]
  node_research_tools["Paper search and lookup<br/>[research_server.py]"]
  node_research_resources["Topic resources<br/>[research_server.py]"]
  node_search_prompt["Research prompt<br/>[research_server.py]"]
  node_paper_store[("Paper JSON files<br/>[research_server.py]")]
end

subgraph group_remote["Remote deployment"]
  node_remote_server["Remote research server<br/>[research_server.py]"]
end

node_user(("User"))
node_claude["Anthropic Claude"]
node_mcp_servers{{"Configured MCP servers"}}
node_arxiv{{"arXiv"}}
node_remote_users(("Remote MCP clients"))

node_user -->|"queries"| node_l7_client
node_l7_client -->|"sends query"| node_claude
node_l7_client -->|"handles tool calls"| node_tool_dispatch
node_tool_dispatch -->|"calls tool"| node_mcp_servers
node_l7_client -->|"reads resources"| node_resource_access
node_resource_access -->|"reads resource"| node_mcp_servers
node_l7_client -->|"executes prompt"| node_prompt_access
node_prompt_access -->|"gets prompt"| node_mcp_servers
node_mcp_servers -.->|"hosts tools"| node_research_tools
node_mcp_servers -.->|"hosts resources"| node_research_resources
node_mcp_servers -.->|"hosts prompt"| node_search_prompt
node_research_tools -->|"searches papers"| node_arxiv
node_research_tools -->|"writes and reads"| node_paper_store
node_research_resources -->|"reads papers"| node_paper_store
node_remote_users -.->|"connects remotely"| node_remote_server
node_remote_server -->|"searches papers"| node_arxiv

click node_l5_client "https://github.com/danielcgithub/mcp_apps_anthropic/blob/main/L5/mcp_project/mcp_chatbot.py"
click node_l6_client "https://github.com/danielcgithub/mcp_apps_anthropic/blob/main/L6/mcp_project/mcp_chatbot.py"
click node_l7_client "https://github.com/danielcgithub/mcp_apps_anthropic/blob/main/L7/mcp_project/mcp_chatbot.py"
click node_tool_dispatch "https://github.com/danielcgithub/mcp_apps_anthropic/blob/main/L7/mcp_project/mcp_chatbot.py"
click node_resource_access "https://github.com/danielcgithub/mcp_apps_anthropic/blob/main/L7/mcp_project/mcp_chatbot.py"
click node_prompt_access "https://github.com/danielcgithub/mcp_apps_anthropic/blob/main/L7/mcp_project/mcp_chatbot.py"
click node_research_tools "https://github.com/danielcgithub/mcp_apps_anthropic/blob/main/L7/mcp_project/research_server.py"
click node_research_resources "https://github.com/danielcgithub/mcp_apps_anthropic/blob/main/L7/mcp_project/research_server.py"
click node_search_prompt "https://github.com/danielcgithub/mcp_apps_anthropic/blob/main/L7/mcp_project/research_server.py"
click node_paper_store "https://github.com/danielcgithub/mcp_apps_anthropic/blob/main/L7/mcp_project/research_server.py"
click node_remote_server "https://github.com/danielcgithub/mcp_apps_anthropic/blob/main/L9/mcp_project/research_server.py"

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_l5_client,node_l6_client,node_l7_client,node_user,node_remote_users toneBlue
class node_tool_dispatch,node_resource_access,node_prompt_access toneAmber
class node_research_tools,node_research_resources,node_search_prompt,node_paper_store,node_mcp_servers toneMint
class node_remote_server toneRose
class node_claude,node_arxiv toneIndigo
```

## Components

### Chatbot client

- [Single-server client](https://github.com/danielcgithub/mcp_apps_anthropic/blob/main/L5/mcp_project/mcp_chatbot.py): `L5/mcp_project/mcp_chatbot.py`
- [Multi-server client](https://github.com/danielcgithub/mcp_apps_anthropic/blob/main/L6/mcp_project/mcp_chatbot.py): `L6/mcp_project/mcp_chatbot.py`
- [Context-aware chatbot](https://github.com/danielcgithub/mcp_apps_anthropic/blob/main/L7/mcp_project/mcp_chatbot.py): `L7/mcp_project/mcp_chatbot.py`

### MCP capabilities

- [Tool dispatch](https://github.com/danielcgithub/mcp_apps_anthropic/blob/main/L7/mcp_project/mcp_chatbot.py): `L7/mcp_project/mcp_chatbot.py`
- [Resource access](https://github.com/danielcgithub/mcp_apps_anthropic/blob/main/L7/mcp_project/mcp_chatbot.py): `L7/mcp_project/mcp_chatbot.py`
- [Prompt access](https://github.com/danielcgithub/mcp_apps_anthropic/blob/main/L7/mcp_project/mcp_chatbot.py): `L7/mcp_project/mcp_chatbot.py`

### Research server

- [Paper search and lookup](https://github.com/danielcgithub/mcp_apps_anthropic/blob/main/L7/mcp_project/research_server.py): `L7/mcp_project/research_server.py`
- [Topic resources](https://github.com/danielcgithub/mcp_apps_anthropic/blob/main/L7/mcp_project/research_server.py): `L7/mcp_project/research_server.py`
- [Research prompt](https://github.com/danielcgithub/mcp_apps_anthropic/blob/main/L7/mcp_project/research_server.py): `L7/mcp_project/research_server.py`
- [Paper JSON files](https://github.com/danielcgithub/mcp_apps_anthropic/blob/main/L7/mcp_project/research_server.py): `L7/mcp_project/research_server.py`

### Remote deployment

- [Remote research server](https://github.com/danielcgithub/mcp_apps_anthropic/blob/main/L9/mcp_project/research_server.py): `L9/mcp_project/research_server.py`

### Other components

- **User**
- **Anthropic Claude**
- **Configured MCP servers**
- **arXiv**
- **Remote MCP clients**

## Connections

- User → Context-aware chatbot: queries (evidence: `L7/mcp_project/mcp_chatbot.py`)
- Context-aware chatbot → Anthropic Claude: sends query (evidence: `L7/mcp_project/mcp_chatbot.py`)
- Context-aware chatbot → Tool dispatch: handles tool calls (evidence: `L7/mcp_project/mcp_chatbot.py`)
- Tool dispatch → Configured MCP servers: calls tool (evidence: `L7/mcp_project/mcp_chatbot.py`)
- Context-aware chatbot → Resource access: reads resources (evidence: `L7/mcp_project/mcp_chatbot.py`)
- Resource access → Configured MCP servers: reads resource (evidence: `L7/mcp_project/mcp_chatbot.py`)
- Context-aware chatbot → Prompt access: executes prompt (evidence: `L7/mcp_project/mcp_chatbot.py`)
- Prompt access → Configured MCP servers: gets prompt (evidence: `L7/mcp_project/mcp_chatbot.py`)
- Configured MCP servers → Paper search and lookup: hosts tools
- Configured MCP servers → Topic resources: hosts resources
- Configured MCP servers → Research prompt: hosts prompt
- Paper search and lookup → arXiv: searches papers (evidence: `L7/mcp_project/research_server.py`)
- Paper search and lookup → Paper JSON files: writes and reads (evidence: `L7/mcp_project/research_server.py`)
- Topic resources → Paper JSON files: reads papers (evidence: `L7/mcp_project/research_server.py`)
- Remote MCP clients → Remote research server: connects remotely
- Remote research server → arXiv: searches papers (evidence: `L9/mcp_project/research_server.py`)
