How danielcgithub/mcp_apps_anthropic works
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: mcp_chatbot.py Context-aware chatbot · mcp_project/research_server.py Paper search and lookup · mcp_project/research_server.py Remote research server
Components 16
Chatbot client
- Single-server client
L5/mcp_project/mcp_chatbot.py - Multi-server client
L6/mcp_project/mcp_chatbot.py - Context-aware chatbot
L7/mcp_project/mcp_chatbot.py
MCP capabilities
- Tool dispatch
L7/mcp_project/mcp_chatbot.py - Resource access
L7/mcp_project/mcp_chatbot.py - Prompt access
L7/mcp_project/mcp_chatbot.py
Research server
- Paper search and lookup
L7/mcp_project/research_server.py - Topic resources
L7/mcp_project/research_server.py - Research prompt
L7/mcp_project/research_server.py - Paper JSON files
L7/mcp_project/research_server.py
Remote deployment
- Remote research server
L9/mcp_project/research_server.py
Other components
- User
- Anthropic Claude
- Configured MCP servers
- arXiv
- Remote MCP clients
Connections 16
- User → Context-aware chatbot: queries
L7/mcp_project/mcp_chatbot.py - Context-aware chatbot → Anthropic Claude: sends query
L7/mcp_project/mcp_chatbot.py - Context-aware chatbot → Tool dispatch: handles tool calls
L7/mcp_project/mcp_chatbot.py - Tool dispatch → Configured MCP servers: calls tool
L7/mcp_project/mcp_chatbot.py - Context-aware chatbot → Resource access: reads resources
L7/mcp_project/mcp_chatbot.py - Resource access → Configured MCP servers: reads resource
L7/mcp_project/mcp_chatbot.py - Context-aware chatbot → Prompt access: executes prompt
L7/mcp_project/mcp_chatbot.py - Prompt access → Configured MCP servers: gets prompt
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
L7/mcp_project/research_server.py - Paper search and lookup → Paper JSON files: writes and reads
L7/mcp_project/research_server.py - Topic resources → Paper JSON files: reads papers
L7/mcp_project/research_server.py - Remote MCP clients → Remote research server: connects remotely
- Remote research server → arXiv: searches papers
L9/mcp_project/research_server.py