hickmank/ghosttown_mcp
3.1
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/
ā āāā jsonrpc
| āāā __init__.py
ā āāā server.py
ā āāā fastmcp
| āāā __init__.py
ā āāā server.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 JSON-RPC MCP server locally
>> docker build -f Dockerfile.jsonrpc -t ghosttown_mcp_jsonrpc .
>> docker run --rm -p 4000:4000 ghosttown_mcp_jsonrpc
4. To run the example JSON-RPC client query
>> python examples/raw_client.py
5. To build the container and start FastMCP MCP server locally
>> docker build -f Dockerfile.fastmcp -t ghosttown_mcp_fastmcp .
>> docker run --rm -p 4001:4001 ghosttown_mcp_fastmcp
6. To run the example MCP SDK client query
>> python examples/sdk_client.py