claude-legal-persistent-memory-pl
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@claude-legal-persistent-memory-plrecall notes about the merger deal"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
claude-legal-persistent-memory-pl
MCP server providing persistent memory for AI legal assistants — remember facts between sessions, recall them with full-text search. Built for Polish law practice, works with any Claude deployment.
Part of the KTZR AI ecosystem.
⚠️ Security — protect your endpoint
Never expose this server without authentication. The /mcp endpoint gives any caller full read/write access to your memory database (client data, negotiation positions, case facts).
Recommended guards — pick one or combine:
Method | How |
Secret token in URL | Deploy behind a reverse proxy that requires |
IP allowlist | Cloud Run → |
VPC + IAP | Route through Identity-Aware Proxy; requires Google account auth |
Cloud Run auth | Remove |
This repo ships with no auth by default (URL obscurity only) — suitable for local/testing use. Add a guard before any production deployment.
Related MCP server: Kronvex
Tools
Tool | Description |
| Store a note in long-term memory |
| Full-text AND search across stored notes |
| Summary of stored notes by category |
Categories: klient · negocjacje · klauzule · ryzyka · precedensy · misc
Quick start (local, SQLite)
pip install .
legal-memory # starts stdio transport — no server, no auth neededAdd to Claude Code (~/.claude/mcp.json):
{
"legal-memory": {
"type": "stdio",
"command": "legal-memory"
}
}Local stdio mode never exposes a network port — no auth required.
Cloud Run deployment
# Build and deploy
gcloud run deploy claude-legal-memory \
--source . \
--region europe-west4 \
--set-env-vars DATABASE_URL="postgresql+asyncpg://user:pass@/db?host=/cloudsql/project:region:instance" \
--allow-unauthenticated # ← add a guard here in production
# Connect Claude Code
# .claude/mcp.json:
# {
# "legal-memory": {
# "type": "http",
# "url": "https://<your-cloud-run-url>/mcp"
# }
# }Configuration
Env var | Default | Description |
|
| Database connection string |
|
| HTTP port (Cloud Run sets this automatically) |
The server auto-detects the transport:
K_SERVICEorPORTset →streamable-http(Cloud Run / remote)Neither set →
stdio(local — recommended for single-user setups)
Database
Works with SQLite (local, zero config) and PostgreSQL (production).
Backend | URL format |
SQLite |
|
PostgreSQL |
|
Cloud SQL |
|
Related
commercial-legal-pl — Polish commercial law skill for Claude (uses this server for persistent memory)
legal-cite-pl — MCP server for verifying Polish & EU legal citations
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/apiotrowski-afk/claude-legal-persistent-memory-pl'
If you have feedback or need assistance with the MCP directory API, please join our Discord server