
This is a Model Context Protocol (MCP) server for interacting with AIStor object stores.

A demonstration MCP server built with FastMCP that registers example and Deephaven-related tools and can run over SSE or stdio transports.
Python MCP server example using FastMCP with Deephaven worker tools is cataloged as an MCP server attributed to chipkent. A demonstration MCP server built with FastMCP that registers example and Deephaven-related tools and can run over SSE or stdio transports. It is categorized under databases storage. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.
Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for Python MCP server example using FastMCP with Deephaven worker tools are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
Worker configuration is handled entirely via a JSON file whose path is set through the required DH_MCP_CONFIG_FILE environment variable, with no default path.
No, the Python client requires the MCP server to be running in SSE mode and will not work in stdio mode.
README.md · 003a5434cd81 · Fetched 2026-11-13 13:31:28 UTC
Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.
Showing the last retrieved documentation snapshot; check the source for current changes.
This project demonstrates how to define and run an MCP (Multi-Channel Protocol) server using the FastMCP implementation. It includes examples for tool registration, server/client usage, and integration with Claude Desktop and MCP Inspector.
src/mcp_server.py — Main entrypoint to run the MCP server (configurable for SSE or stdio transport).src/dhmcp/__init__.py — All tools are registered here using the @mcp_server.tool() decorator.src/mcp_client.py — Example async client for testing tools.requirements.txt — Python dependencies (including mcp[cli] and autogen-ext).uv for Dependency Managementuv is a modern, ultra-fast Python package manager and runner. It can be used as a drop-in replacement for pip and venv, providing faster installs and improved dependency management.
pyproject.toml: The modern, recommended way to specify your project's dependencies and metadata. uv uses this as the source of truth.requirements.txt: Supported for compatibility with traditional Python tools and workflows. Optional if you use pyproject.toml.uv.lock: Lockfile for reproducible installs (auto-managed by uv).uv pip install <package>
# Example:
uv pip install autogen-ext mcp[cli]
This updates pyproject.toml and uv.lock.uv pip install # Installs all dependencies from pyproject.toml
uv run src/mcp_server.py
uv run src/mcp_client.py
uv sync --upgrade
requirements.txt, you can use:
uv pip install -r requirements.txt
# or
uv add --requirements requirements.txt
requirements.txt is optional with uv. For new projects, you can rely entirely on pyproject.toml and uv.lock.requirements.txt up to date.uv works with or without a virtual environment. Use uv venv .venv to create one if desired.--active to target the currently activated one.It is recommended to use a virtual environment:
venv:python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
uv:uv pip install -r requirements.txt
From the project root, run (choose the transport that fits your use case):
SSE transport (default, for browser/web clients):
python src/mcp_server.py
# or, explicitly:
python src/mcp_server.py --transport sse
# or, using uv:
uv run src/mcp_server.py
The server will listen on http://localhost:8000/sse
Stdio transport (recommended for Claude Desktop/Inspector):
python src/mcp_server.py --transport stdio
# or, using uv:
uv run src/mcp_server.py --transport stdio
The server will communicate via stdio (no HTTP port needed).
You should see log output indicating the server is running with the selected transport.
Note: The Python client (
mcp_client.py) requires the MCP server to be running in SSE mode (the default). It will not work if the server is running in stdio mode.
It is recommended to use a virtual environment:
venv:python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
uv:uv pip install -r requirements.txt
From the project root, run:
venv:cd src
python -m mcp_client
uv:cd src
uv run mcp_client.py
You should see log output indicating the client is running and listing available tools.
You can connect Claude Desktop to your local stdio MCP server to use custom tools.
Edit ~/Library/Application\ Support/Claude/claude_desktop_config.json to add your MCP server. Deephaven worker configuration is now handled entirely via a JSON config file, and the path must be specified using the required DH_MCP_CONFIG_FILE environment variable. There is no default path—this environment variable must always be set.
Example Claude Desktop config (using venv):
{
"mcpServers": {
"test-dh-mcp": {
"command": "/Users/chip/dev/test-dh-mcp/.venv/bin/python3",
"args": ["/Users/chip/dev/test-dh-mcp/src/mcp_server.py", "--transport", "stdio"],
"env": {
"DH_MCP_CONFIG_FILE": "/Users/chip/dev/test-dh-mcp/deephaven_workers.json"
}
}
}
}
Or with uv:
{
"mcpServers": {
"test-dh-mcp": {
"command": "uv",
"args": [
"--directory",
"/Users/chip/dev/test-dh-mcp/src",
"run",
"mcp_server.py",
"--transport",
"stdio"
],
"env": {
"DH_MCP_CONFIG_FILE": "/Users/chip/dev/test-dh-mcp/deephaven_workers.json"
}
}
}
}
Note: Always set
DH_MCP_CONFIG_FILEin theenvsection if your config is not nameddeephaven_workers.jsonin the project root, or if you want to be explicit about the config location.
"args": [
"--directory",
"/Users/chip/dev/test-dh-mcp/src",
"run",
"mcp_server.py",
"--transport",
"stdio"
],
"env": {
"DH_MCP_SERVER_NAME": "test-dh-mcp",
"DH_MCP_HOST": "localhost",
"DH_MCP_PORT": "10000",
"DH_MCP_AUTH_TYPE": "Anonymous"
}
}
} }
Note: All
DH_MCP_*environment variables listed in the Deephaven Session Configuration section can be set here. These control the Deephaven session for every tool call.
~/Library/Logs/Claude/All Deephaven worker configuration is now handled via a JSON file. The path to this file must be specified using the DH_MCP_CONFIG_FILE environment variable. There is no default path—this variable is required.
The config file should look like this:
{
"workers": {
"worker1": {
"host": "localhost",
"port": 10000,
"auth_type": "Anonymous",
"auth_token": "",
"never_timeout": true
},
"worker2": {
"host": "otherhost",
"port": 10001,
"auth_type": "Bearer",
"auth_token": "YOUR_TOKEN"
}
},
"default_worker": "worker1"
}
workers object maps worker names to their connection settings.default_worker is optional and used if a worker name is not specified in a tool call. If set, it must match one of the keys in the workers dictionary.Important: The
DH_MCP_CONFIG_FILEenvironment variable must always be set to the path of your worker config file. There is no default config path.
Supported fields for each worker:
| Field | Type | Description |
|---|---|---|
host | str | Deephaven server hostname or IP (optional) |
port | int | Deephaven server port (optional) |
auth_type | str | Authentication type (e.g., Anonymous, Bearer) (optional) |
auth_token | str | Authentication token (optional) |
never_timeout | bool | Whether the session should never timeout (optional, default: True) |
session_type | str | Session type, e.g., python (optional, default: 'python') |
use_tls | bool | Whether to use TLS/SSL (optional, default: False) |
tls_root_certs | str or null | Path to TLS root certificates (optional) |
client_cert_chain | str or null | Path to client certificate chain (optional) |
client_private_key | str or null | Path to client private key (optional) |
Note: You may define workers with only a subset of these fields, depending on your use case and authentication method. No fields are strictly required; defaults will be used where possible.
echo_tool(message: str) -> str: Echoes back the input message, prefixed with 'Echo:'.gnome_count_colorado() -> int: Returns the current number of gnomes in Colorado (demo tool).deephaven_worker_names() -> list[str]: Returns all configured Deephaven worker names from the config file.deephaven_default_worker() -> str: Returns the name of the default worker as set in config (or None if not set).deephaven_list_tables(worker_name: str = None) -> list: Lists table names for the specified worker. If worker_name is not provided, uses the default_worker from config.deephaven_table_schemas(worker_name: str = None) -> list: Returns schemas for all tables in the specified worker. If worker_name is not provided, uses the default_worker from config.See the example config file above for how to set up multiple workers.
Define new tools in dhmcp/__init__.py using the @mcp_server.tool() decorator. Example:
@mcp_server.tool()
def echo_tool(message: str) -> str:
"""
Echo tool that returns the input message prefixed with 'Echo:'.
"""
return f"Echo: {message}"
src for direct script execution).curl http://localhost:8000/sse
The MCP Inspector is a tool that allows you to inspect the state of an MCP server.
Install the MCP Inspector:
npm install -g @modelcontextprotocol/inspector@latest
Run the MCP Inspector:
⚠️ WARNING: When using the MCP Inspector, all string values must be entered with quotes (e.g., "worker1"). If you do not use quotes, the Inspector may send
nullor invalid values to the server. The value can be validated by clicking on theFormat JSONbutton.
- ** SSE mode: **
- Using `venv`:
```bash
cd /Users/chip/dev/test-dh-mcp/src
npx @modelcontextprotocol/inspector@latest \
/Users/chip/dev/test-dh-mcp/venv/bin/python3 mcp_server.py --transport sse
```
- Using `uv`:
```bash
cd /Users/chip/dev/test-dh-mcp/src
npx @modelcontextprotocol/inspector@latest \
uv run mcp_server.py --transport sse
```
- ** Stdio mode: **
- Using `venv`:
```
cd /Users/chip/dev/test-dh-mcp/src
npx @modelcontextprotocol/inspector@latest \
/Users/chip/dev/test-dh-mcp/venv/bin/python3 mcp_server.py --transport stdio
```
- Using `uv`:
```bash
cd /Users/chip/dev/test-dh-mcp/src
npx @modelcontextprotocol/inspector@latest \
uv run mcp_server.py --transport stdio
```
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for Python MCP server example using FastMCP with Deephaven worker tools from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/test-dh-mcp)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.
No reviewed package or image identity; download statistics are not listed yet.
Alternative and complementary servers in the same category

This is a Model Context Protocol (MCP) server for interacting with AIStor object stores.

A Model Context Protocol server that lets AI assistants run SQL queries against AWS Athena databases and retrieve results.

A Model Context Protocol (MCP) server that exposes access to an InfluxDB v2 instance using the InfluxDB OSS API v2.