This repository contains basic examples for learning the Anthropic API and Model Context Protocol.
claude_basics: Notebooks and examples for using the Anthropic API.mcp_basics: A basic MCP server, MCP client, and command-line chat application.
- Python 3.12
- uv
- An Anthropic API key
Clone the repository and enter the project:
git clone https://github.com/ms-codehorizon/claude-intro.git all-about-claude
cd all-about-claudeCreate the project environment and install all dependencies:
uv sync --python 3.12Create a .env file in the repository root:
ANTHROPIC_API_KEY=your_api_key
CLAUDE_MODEL=claude-sonnet-4-5
USE_UV=1Do not commit the .env file.
Run the basic project entry point:
uv run python -m claude_basics.mainRun the MCP chat application:
uv run python -m mcp_basics.mainYou do not need to activate .venv when using uv run.