Skip to main content
Glama
paolino

mcp-memory-server

by paolino

MCP Memory Server

CI

MCP server for memory management with process inspection and cleanup tools.

Documentation

Tools

Tool

Description

list_memory_usage

System memory summary (like free -h)

list_top_processes

Top N memory consumers with details

find_stale_processes

Find sleeping/idle processes by age, state, name pattern

kill_processes

Kill PIDs with safety checks

Related MCP server: mcp-sysmon

Installation

Claude Code

Add to ~/.config/claude-code/mcp.json:

{
  "mcpServers": {
    "mcp-memory": {
      "command": "nix",
      "args": ["run", "github:paolino/mcp-memory-server", "--refresh"]
    }
  }
}

The --refresh flag ensures you always get the latest version. Remove it to use the cached version for faster startup.

From source

git clone https://github.com/paolino/mcp-memory-server
cd mcp-memory-server
nix develop
just install
just run

Usage Examples

Show memory usage

Ask Claude: "Show me current memory usage"

Find stale GHC processes

Ask Claude: "Find old GHC or cabal processes using more than 100MB"

This calls find_stale_processes with:

  • name_pattern: "ghc|cabal"

  • min_memory_mb: 100

Kill processes

Ask Claude: "Kill these PIDs: 1234, 5678"

Safety checks:

  • Refuses PID 0/1

  • Refuses root-owned processes (unless running as root)

  • Optional name confirmation to prevent killing wrong process

  • Default SIGTERM, SIGKILL only when explicit

Development

nix develop
just test       # Run tests
just run        # Start server
just format     # Format code
just lint       # Lint code

License

MIT

A
license - permissive license
-
quality - not tested
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
1Releases (12mo)
Commit activity
Issues opened vs closed

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

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/paolino/mcp-memory-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server