An MCP (Model Context Protocol) server that provides access to phext - a hyperdimensional text processing system.
NOTE: We will be publishing this as a pip package soon. For now, please use the developer installation below.
For developers who want to try the latest features:
-
Download the repository:
git clone https://github.com/identimoji/mcp-server-phext.git cd mcp-server-phext -
Install uv (if you haven't already, skip this if you have):
curl -LsSf https://astral.sh/uv/install.sh | sh -
Install dependencies:
uv sync
-
Add to Claude Desktop config:
IMPORTANT: You'll need to add the full path to the repo you just downloaded here
{
"mcpServers": {
"phext-dev": {
"command": "uv",
"args": [
"run",
"--directory",
"{full path to your local mcp-server-phext repo}",
"python",
"-m",
"mcp_server_phext"
],
"env": {
"PHEXT_DEFAULT_FILE": "~/.claude/claude_desktop.phext"
}
}
}
}- In the project knowledge of Claude desktop, you can add "Start all conversations with initialize_phext()" ... this will inform Claude how to use Phext, and can be customized to have Claude Desktop automatically save memories, milestones, or whatever he wants to remember about your interactions! Just tell him what you want to be saved, and he can update the initialize script automatically for you.
Phext is a hyperdimensional text coordinate system that allows you to organize and navigate text in three-dimensional space using coordinates like 1.1.1, 2.3.4, etc. It enables unique ways of structuring and accessing textual information.
# Install with uv (recommended)
uv add mcp-server-phext
# Or with pip
pip install mcp-server-phextNOTE: Thes are instructions for once this mcp server is published to pip ... IGNORE FOR NOW, use above development install.
Add this to your Claude Desktop configuration:
{
"mcpServers": {
"phext": {
"command": "uv",
"args": ["run", "mcp-server-phext"],
"env": {
"PHEXT_DEFAULT_FILE": "~/.claude/claude_desktop.phext"
}
}
}
}# Run the server directly
uv run mcp-server-phext
# Or with a specific default file
uv run mcp-server-phext --default-phext-file ~/my-phext-file.phextThe MCP server provides the following tools:
- phext_fetch: Read content from a coordinate (e.g.,
1.1.1/1.1.1/1.1.1) - phext_insert: Insert content at a coordinate (appends to existing)
- phext_replace: Replace content at a coordinate
- phext_range_replace: Replace content across a range of coordinates
- phext_remove: Remove content at a coordinate
- phext_create_file: Create new phext files
- phext_explode: Get a map of all coordinates and content
- phext_textmap: Get a text summary of all coordinates
- phext_normalize: Clean up and optimize phext structure
- phext_merge: Merge two phext files together
- Access to phext files as MCP resources
- Read raw phext file content
# Fetch content at coordinate
phext_fetch(coordinate="1.1.1/1.1.1/1.1.1")
# Insert content at a coordinate
phext_insert(coordinate="1.1.1/1.1.1/1.2.1", content="Hello, hyperdimensional world!")
# Replace content across a range
phext_range_replace(
start_coordinate="1.1.1/1.1.1/1.1.1",
end_coordinate="1.1.1/1.1.1/1.1.5",
content="New content"
)
# Get a map of all content
phext_textmap()
PHEXT_DEFAULT_FILE: Default phext file to use if none specified
--default-phext-file: Specify default phext file
# Clone and setup
git clone <repository>
cd mcp-server-phext
# Install dependencies
uv sync
# Run in development
uv run mcp-server-phextMIT License