Skip to main content
Glama
mempalace-mcp-http

mempalace-mcp-http

by flejz

mempalace-mcp-http

HTTP transport for mempalace-mcp. One palace, many machines.

Prerequisites

mempalace must already be installed on the target machine:

uv tool install mempalace   # or: pip install mempalace

This tool extends mempalace — does not replace or install it.

Related MCP server: Levitate

Setup

curl -fsSL https://raw.githubusercontent.com/flejz/mempalace-mcp-http/master/setup.sh | bash

Or clone and run:

git clone https://github.com/flejz/mempalace-mcp-http
cd mempalace-mcp-http
./setup.sh

Detects mempalace, installs HTTP deps, configures systemd service. If ~/.claude/settings.json exists, prompts to add (or replace existing mempalace entry with) the HTTP MCP config automatically.

Token management

mempalace-token is installed to ~/.local/bin/ during setup:

mempalace-token show      # masked preview
mempalace-token reveal    # full token
mempalace-token rotate    # new token + restart service
mempalace-token remove    # invalidate token — blocks all clients

remove replaces the token with an unguessable value (server stays auth-required, no valid token exists). Use rotate to recover access.

Claude Code config

Setup auto-configures via claude mcp add with a confirmation prompt. Manual command on any machine:

claude mcp add --transport http mempalace \
  http://<palace-host>:8765/mcp \
  --header "Authorization: Bearer <token>"

Replaces the standard stdio entry (python -m mempalace.mcp_server) — setup.sh detects it and prompts automatically.

For non-Claude clients, equivalent settings.json entry:

{
  "mcpServers": {
    "mempalace": {
      "type": "http",
      "url": "http://<palace-host>:8765/mcp",
      "headers": { "Authorization": "Bearer <token>" }
    }
  }
}

Env vars

Var

Default

Purpose

MEMPALACE_HTTP_PORT

8765

Listen port

MEMPALACE_HTTP_HOST

0.0.0.0

Bind address

MEMPALACE_HTTP_TOKEN

(unset = open)

Bearer auth token

How it works

  • Calls mempalace.mcp_server.handle_request() directly — no subprocess, no protocol proxying

  • threading.Lock serializes all calls — sqlite-safe under concurrent clients

  • 1:1 tool mapping — all mempalace tools available, auto-updated when mempalace upgrades

Health check

curl http://localhost:8765/health
# {"status":"ok","mempalace":"3.x.x"}

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      HTTP bridge that exposes MCP tools via POST endpoint, enabling remote LLMs to access local functionality with bearer authentication.
      ISC
    • A
      license
      Not graded
      quality
      B
      maintenance
      Lifts local stdio MCP servers into remote Streamable HTTP endpoints for cloud-hosted AI clients, with bearer-token auth and tool policy filtering.
      12 npm
      MIT
    • F
      license
      Not graded
      quality
      F
      maintenance
      Enables remote MCP clients to securely access AgentMemory tools like memory_recall, memory_smart_search, and memory_save through OAuth 2.1 and Streamable HTTP, while keeping the AgentMemory backend secret private.
      -
    • F
      license
      Not graded
      quality
      C
      maintenance
      Enables remote use of MaIGIC tools such as determine_hamiltonian and compute_property over Streamable HTTP with bearer-token authentication, allowing clients like Cursor to access them from any machine.
      -