Skip to content

JessWill/HelloWorldMCP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HelloWorldMCP

A small Hello World to get me started with Model Context Protocol (MCP) servers.

This minimal example sets up a simple MCP server using the python-sdk and responds with a greeting whenever a tool is called. Used https://github.com/modelcontextprotocol/python-sdk/blob/main/examples/servers/simple-streamablehttp-stateless as a template.

Requirements

  • Python 3.10 or later
  • uvicorn
  • MCP Python SDK

To install the dependencies:

python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt

Running the Server

uv run HelloWorldMCP

Then simply connect using something like Claude Desktop or I used 5ire. URL should be: http://0.0.0.0:3000/mcp

About

lil MCP hello world

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages