{
  "id": 22036514,
  "title": "Talk to a remote MCP server with only the Python standard library (and call two tools without a key)",
  "url": "https://urgent.news/2026/11/26/talk-to-a-remote-mcp-server-with-only-the-python-standard-library-and",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-11-26T20:09:52.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/siftwright/talk-to-a-remote-mcp-server-with-only-the-python-standard-library-and-call-two-tools-without-a-key-380h"
  },
  "original_language": "en",
  "account": "The article demonstrates how to interact with a remote MCP server using only Python's standard library, without requiring any additional packages or API keys. By leveraging JSON-RPC over HTTPS POST, the author shows how to connect to a real server at https://siftwright.com/mcp.\n\nThe author explains that communicating with the MCP server involves three key JSON-RPC methods: initialize, which establishes protocol version and server name; tools/list, which retrieves tool details; and tools/call, which runs a specified tool with provided arguments.\n\nThe article provides a concise Python script that showcases these concepts. It begins by importing necessary modules, setting the MCP_URL and an optional API_KEY for authenticated calls. The rpc function handles sending JSON-RPC requests, managing the request ID, and parsing responses. If an API key is provided, it's included in the request headers.\n\nTo demonstrate the functionality, the script performs three actions:\n1. Calls initialize to confirm protocol version and obtain the server's title and supported protocol version.\n2. Calls tools/list to retrieve a list of available tools, including domain_whois and pqc_scan, which can be used without an API key.\n3. Calls domain_whois with a sample domain to retrieve WHOIS information without exceeding the daily limit.\n\nThe output of these three calls is then printed, providing a clear example of interacting with the MCP server using only the Python standard library.",
  "summary": "Most \"connect your agent to MCP\" guides start with installing an SDK and a client. But the protocol underneath a remote MCP server is just JSON-RPC over HTTPS POST. If you want to know what a server actually does before you wire it into Claude, Cursor or VS Code, you can talk to it with the Python standard library in about 60 lines. This post does exactly that against a real server,…",
  "key_points": [
    "Interacts with remote MCP server using Python's standard library",
    "Demonstrates initialize, tools/list, and tools/call methods",
    "Calls domainwhois tool to retrieve WHOIS information without API key"
  ],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}