hickmank/ghosttown_mcp
3.2
If you are the rightful owner of ghosttown_mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
A very sparsely populated MCP server setup for experimentation with the protocol.
Ghost Town MCP
This repository is meant as a learning platform to set up a very simple, very sparse Model Context Protocol (MCP) server. The code here is mainly meant as a educational resource for the creator.
The repository demonstrates a minimal MCP server implementation in Python, exposing an add
tool, along with a simple client to invoke it.
1. Directory Structure
ghosttown_mcp/
āāā .gitignore
āāā README.md
āāā Dockerfile
āāā pyproject.toml
ā
āāā src/
ā āāā ghosttown_mcp/
ā āāā __init__.py
ā āāā tools/
ā āāā __init__.py
ā ā āāā addition.py
ā āāā server/
| āāā __init__.py
ā āāā main.py
ā
āāā examples/
ā |āā sdk_client.py
ā āāā raw_client.py
ā
āāā tests/
āāā test_add.py
2. To install in python virtual environment
(mcp_venv)>> pip install flit
(mcp_venv)>> cd <ghosttown_mcp_rootdir>
(mcp_venv)>> flit install --symlink --deps=all
3. To build container and start MCP server locally
>> docker build -t ghosttown_mcp .
>> docker run --rm -p 4000:4000 ghosttown_mcp
4. To run the example client queries
>> python examples/raw_client.py
>> python examples/mcp_sync_client.py
>> python examples/sdk_client.py
Note: The sdk_client.py
and mcp_sync_client.py
return some error handling messages
resulting from SSE events. They can be ignored for now.