Querying a Remote MCP Server Using Only Python's Standard Library
A guide explains that the Model Context Protocol is essentially JSON-RPC over HTTPS POST, so its server can be tested without an SDK. It targets the public server at siftwright.com/mcp, where two of nine tools, domain_whois and pqc_scan, work without an API key subject to a free daily limit. The author outlines the three core methods a client needs: initialize, tools/list and tools/call. A roughly 60-line Python script using urllib demonstrates these calls, including required headers and handling of tool result content blocks. The examples were run on 26 November 2026, and the post notes that Cloudflare-fronted sites may reject the default Python user agent.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in