# Mcp Http Client Example

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

- **Type:** MCP server
- **Install:** `agentstack add mcp-slavashvets-mcp-http-client-example`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [slavashvets](https://agentstack.voostack.com/s/slavashvets)
- **Installs:** 0
- **Category:** [Integrations](https://agentstack.voostack.com/c/integrations)
- **Latest version:** 0.1.0
- **License:** Apache-2.0
- **Upstream author:** [slavashvets](https://github.com/slavashvets)
- **Source:** https://github.com/slavashvets/mcp-http-client-example

## Install

```sh
agentstack add mcp-slavashvets-mcp-http-client-example
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# MCP HTTP Client Example

Simple example client demonstrating how to connect to [Model Context Protocol (MCP)](https://spec.modelcontextprotocol.io) servers over HTTP using Server-Sent Events (SSE) transport.

Uses the official [MCP Python SDK](https://github.com/modelcontextprotocol/python-sdk) to handle protocol communication and server interactions.

## Features

- Connects to MCP servers over SSE transport
- Lists available tools, resources and prompts
- Properly handles connection lifecycle with async context managers

## Requirements

- [uv](https://github.com/astral-sh/uv)

## Usage

Clone this repository, then run the example client:

```bash
uv run -- main.py 
```

For example:

```bash
uv run -- main.py http://localhost:8000/sse
```

The client will:

1. Connect to the specified MCP server
2. List its available capabilities
3. Print them as JSON

## Documentation

- [MCP Specification](https://spec.modelcontextprotocol.io)
- [MCP Python SDK](https://github.com/modelcontextprotocol/python-sdk)

## Source & license

This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [slavashvets](https://github.com/slavashvets)
- **Source:** [slavashvets/mcp-http-client-example](https://github.com/slavashvets/mcp-http-client-example)
- **License:** Apache-2.0

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/mcp-slavashvets-mcp-http-client-example
- Seller: https://agentstack.voostack.com/s/slavashvets
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
