Feedback

MCP HTTP Client Example (slavashvets/mcp-http-client-example)

@slavashvets Claim

Basic information

Runtime
python
Category
License
Apache-2.0 license
Author
slavashvets
Submitted by
Community
Quality
50
Stars
15

About MCP HTTP Client Example (slavashvets/mcp-http-client-example)

Simple example client demonstrating how to connect to MCP servers over HTTP (SSE)

MCP HTTP Client Example is a MCP client in the Agent Framework category listed in the AddMCP.net directory, published by slavashvets. Runtime: python. License: Apache-2.0 license. The repository has 15 GitHub stars. Source code is hosted on github.com.

MCP HTTP Client Example (slavashvets/mcp-http-client-example) config

No standard config provided

This server doesn't expose a parseable MCP config block in its README. See the repository for install instructions.

Repository

MCP HTTP Client Example (slavashvets/mcp-http-client-example) tools

Tool list not available yet

This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.

We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.

Overview

What is MCP HTTP Client Example?

MCP HTTP Client Example is a simple example client that demonstrates how to connect to Model Context Protocol (MCP) servers over HTTP using Server-Sent Events (SSE) transport. Built with the official MCP Python SDK, it is intended for developers learning MCP integration or testing server implementations.

How to use MCP HTTP Client Example?

Clone the repository and run uv run -- main.py \x3Cserver_url>, replacing \x3Cserver_url> with your MCP server’s SSE endpoint. For example, uv run -- main.py http://localhost:8000/sse. The client requires uv to be installed. It will connect to the server, list available capabilities, and print them as JSON.

Key features of MCP HTTP Client Example

  • Connects to MCP servers over SSE transport
  • Lists available tools, resources, and prompts
  • Handles connection lifecycle with async context managers
  • Prints server capabilities as JSON

Use cases of MCP HTTP Client Example

  • Learning how to connect to an MCP server via SSE transport
  • Quickly verifying an MCP server’s advertised capabilities
  • Testing MCP server implementations during development

Frequently asked questions

1 What do I need to run MCP HTTP Client Example?

You need uv installed and an MCP server that supports SSE transport.

2 How do I connect to an MCP server using this client?

Run uv run -- main.py \x3Cserver_url> where \x3Cserver_url> is the server’s SSE endpoint, for example http://localhost:8000/sse.

3 What does the client actually do?

It connects to the specified MCP server, retrieves the list of available tools, resources, and prompts, and prints them as JSON to the console.

4 Does it support other transports, like stdio?

No, this example client only supports HTTP transport via Server-Sent Events (SSE). It does not implement stdio transport.

5 Is this client intended for production use?

No, it is a basic example provided to demonstrate MCP connectivity and protocol interaction. Production applications would require more robust error handling and customization.

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬