Skip to content

MCP vs API calls - #816

Open
leriomaggio wants to merge 3 commits into
masterfrom
mcp-vs-api-calls
Open

MCP vs API calls#816
leriomaggio wants to merge 3 commits into
masterfrom
mcp-vs-api-calls

Conversation

@leriomaggio

Copy link
Copy Markdown

Sample code for the "MCP vs API Calls: Which Should You Use for Python LLM
Apps?" tutorial (tutorial-drafts #1184).

Four files in mcp-vs-api-calls/:

  • tool.py — shared PyPI lookup, standard library only
  • client_api.py — direct API calls integration
  • server.py + client.py — MCP integration, on MCP SDK v2

All lint-clean (black + flake8 at 79) and verified end to end against a live
MCP 2.1.1 server and real PyPI.

This function retrieves package information from PyPI, including the name, version, and summary.
Materials attached to the "MCP vs API Calls: Which Should You Use for Python LLM Apps?" tutorial
Add README for MCP vs API Calls tutorial with setup instructions and example usage.
@leriomaggio leriomaggio changed the title Mcp vs api calls MCP vs API calls Sep 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant