mcp-memory-server
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., "@mcp-memory-serverList top 5 memory consuming processes"
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.
MCP Memory Server
MCP server for memory management with process inspection and cleanup tools.
Tools
Tool | Description |
| System memory summary (like |
| Top N memory consumers with details |
| Find sleeping/idle processes by age, state, name pattern |
| Kill PIDs with safety checks |
Related MCP server: mem0_mcp_server
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 runUsage 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 codeLicense
MIT
Available Tools
5 toolsfind_stale_processesB
Find potentially stale processes based on various criteria.
Useful for finding long-running background processes that may be consuming resources unnecessarily.
| Name | Required | Description | Default |
|---|---|---|---|
| states | No | Process states to include (default ["sleeping"]). Valid: sleeping, zombie, stopped, idle, running, disk-sleep | |
| name_pattern | No | Regex pattern to match process names (e.g., "ghc|cabal") | |
| min_age_hours | No | Minimum process age in hours (default 1.0) | |
| min_memory_mb | No | Minimum memory usage in MB (default 0) |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description must disclose behavioral traits. It implies a read-only search operation ('Find...') and mentions 'potentially stale' but does not explicitly state that it performs no destructive actions, whether results are limited, or any side effects. The heuristic nature of 'potentially' is vague and lacks detail about how staleness is determined beyond what the schema already shows.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is concise and front-loaded: the first sentence states the primary action, and the second adds a clear use case. Every word contributes value with no repetition or filler.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The tool has 4 optional parameters and an output schema, so the schema fills in some gaps. However, the description does not clarify what constitutes 'stale' (e.g., age, memory, state) beyond the parameter names, and it fails to mention relationships to sibling tools. For a moderately complex tool, this leaves some gaps in understanding when and how to invoke it effectively.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema provides 100% coverage for all 4 parameters, each with clear names, defaults, and descriptions. The tool description adds no parameter-specific information beyond what the schema already documents, so the baseline score of 3 is appropriate.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool 'finds potentially stale processes' with a specific verb and resource. It distinguishes itself from siblings (like list_top_processes or kill_processes) by focusing on staleness rather than general listing or termination. However, it doesn't explicitly name alternative tools or contrast its behavior.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides helpful context ('Useful for finding long-running background processes that may be consuming resources unnecessarily'), implying when to use it. It does not mention when to avoid it or offer alternatives like list_top_processes, so the guidance is present but incomplete.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
kill_processesA
Kill processes by PID with safety checks.
Safety mechanisms:
Refuses to kill PID 0 or 1
Refuses root-owned processes unless running as root
Optional name confirmation to prevent killing wrong process
Uses SIGTERM by default, SIGKILL only when explicit
| Name | Required | Description | Default |
|---|---|---|---|
| pids | Yes | List of process IDs to kill | |
| signal_name | No | Signal to send - "SIGTERM" (default) or "SIGKILL" | SIGTERM |
| confirm_names | No | Optional dict mapping PID to expected process name. Aborts kill for a PID if its name doesn't match. |
Output Schema
| Name | Required | Description |
|---|---|---|
| failed | Yes | Number that failed |
| refused | Yes | Number refused due to safety checks |
| results | Yes | Per-PID results |
| requested | Yes | Number of PIDs requested to kill |
| succeeded | Yes | Number successfully killed |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the full burden of disclosing behavior. It covers critical safety traits: refuses PID 0/1, root-owned checks, optional name confirmation, and signal defaults. It stops short of explaining what happens when a refusal occurs or how partial failures are handled, but the core behavioral profile is well covered.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is succinct and well-structured, with a clear opening statement followed by a bulleted list of safety mechanisms. Every sentence is informative, with no filler or redundancy.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The tool has moderate complexity (3 params, output schema present). The description covers the essential behavior and safety constraints. It doesn't discuss outcome reporting or edge cases like already-terminated processes, but the existence of an output schema reduces the need to describe return values. Overall, adequately complete for its complexity.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 100%, so baseline is 3. The description adds value beyond the schema by clarifying that SIGKILL is only used when explicitly requested and that name confirmation aborts kills on mismatch, which are constraints not fully spelled out in the parameter descriptions.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states 'Kill processes by PID', which is a specific verb+resource pair. It is distinctly different from sibling tools that list or find processes, leaving no ambiguity about its function.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides clear context for when to use this tool (to terminate processes) and highlights safety mechanisms, making the intended use obvious. It doesn't explicitly exclude scenarios, but none of the sibling tools perform killing, so the usage is unambiguous.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
list_memory_usageA
Get system memory usage summary.
Returns total, available, used memory and swap statistics,
similar to the free -h command.
| Name | Required | Description | Default |
|---|---|---|---|
No parameters | |||
Output Schema
| Name | Required | Description |
|---|---|---|
| used_gb | Yes | Used memory in GB |
| total_gb | Yes | Total physical memory in GB |
| warnings | No | Health warnings (high memory, swap usage, etc.) |
| available_gb | Yes | Available memory in GB |
| swap_percent | Yes | Swap usage percentage |
| swap_used_gb | Yes | Used swap in GB |
| used_percent | Yes | Memory usage percentage |
| swap_total_gb | Yes | Total swap in GB |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the full burden. It indicates a read-only operation through 'Get' and 'Returns', and the `free -h` analogy strongly implies a non-destructive system query. It does not explicitly state that it makes no system changes or require permissions, but for a simple query tool this is effectively conveyed.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is exactly two sentences, front-loaded with the main purpose, and then adds specific return fields and a useful analogy. Every sentence contributes value with no redundancy.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
This is a simple tool with no parameters and an output schema. The description fully explains what it does and what metrics it covers, and the `free -h` analogy provides familiar context. There are no missing pieces for an agent to invoke it correctly.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
There are zero parameters, and the schema confirms this. The description adds no parameter details because none exist. Per the rubric, a baseline of 4 is appropriate for 0-parameter tools.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the verb 'Get' and the resource 'system memory usage summary', and further specifies the fields returned (total, available, used memory, swap statistics). This distinguishes it from sibling process-focused tools, and the analogy to `free -h` reinforces its purpose.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides clear context: use it to obtain a memory usage summary. It doesn't explicitly mention alternatives or exclusions, but the sibling tools are all process-related (e.g., list_top_processes, kill_processes), so the intended use case is obvious. No explicit 'when-not' is stated, but the scope is unambiguous.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
list_process_groupsA
List processes grouped by name with aggregated stats.
Useful for seeing total resource usage by process type (e.g., "3 claude processes using 1.6GB total").
| Name | Required | Description | Default |
|---|---|---|---|
| n | No | Number of groups to return (default 10, max 50) | |
| min_count | No | Minimum number of instances to include (default 1) |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description must carry the burden. It states that it returns grouped stats and gives an example, but it does not specify which stats are included (e.g., CPU vs memory) or potential edge cases, leaving some gaps.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is two concise sentences, front-loaded with the primary action and followed by a helpful example. No unnecessary words or repetition.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
With an output schema present and schema descriptions covering parameters, the description is largely complete. It provides a clear purpose and an example. It could mention read-only behavior, but that is implied by 'List' and the output schema.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100% for both parameters (n and min_count), with clear descriptions and defaults. The tool description adds no additional meaning beyond the schema, so the baseline of 3 is appropriate.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool lists processes grouped by name with aggregated stats, using a specific verb and resource. This distinguishes it from sibling tools like list_top_processes (individual processes) and list_memory_usage (memory-specific).
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
It provides a clear use case: 'Useful for seeing total resource usage by process type' with an illustrative example. However, it does not explicitly mention alternatives or exclusions, so it falls short of a 5.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
list_top_processesC
List top N memory-consuming processes.
| Name | Required | Description | Default |
|---|---|---|---|
| n | No | Number of processes to return (default 10, max 100) | |
| sort_by | No | Sort criterion - "memory" (default) or "cpu" | memory |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description alone is responsible for disclosing behavioral traits. It only states 'List top N memory-consuming processes' but fails to mention important behaviors like default values (n=10, max=100), the ability to sort by CPU, or any specifics about output. This is a significant transparency gap.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, front-loaded sentence with no wasted words. It efficiently communicates the core purpose, though it lacks structure for detailing options or usage. This is appropriately concise for a simple tool.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The tool is relatively simple, and an output schema exists, so return value details are unnecessary. However, the description is minimal and does not address the ambiguity with sibling tools like 'list_memory_usage' or mention sorting flexibility. It is adequate for a basic understanding but lacks completeness for effective tool selection.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema already provides 100% coverage for both parameters (n and sort_by) with clear descriptions, so the baseline is 3. The tool description does not add parameter semantics, but the schema handles it. However, the description mentions only 'memory-consuming' while sort_by can be 'cpu', which is slightly misleading, though the schema clarifies this.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states a specific verb ('List') and resource ('top N memory-consuming processes'), making the tool's primary function unambiguous. However, it does not explicitly differentiate from sibling tools like 'list_memory_usage', which could overlap in purpose, so it falls short of a 5.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus alternatives such as 'list_memory_usage' or 'find_stale_processes'. It gives no context, exclusions, or preferred use cases, leaving the agent without enough information to select between siblings.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
5 tool updates
v0.2.0- First observed
find_stale_processes - First observed
kill_processes - First observed
list_memory_usage - First observed
list_process_groups - First observed
list_top_processes
TDQS
Each tool has a distinct purpose: memory usage overview, top processes, process grouping, stale process detection, and process termination. Even the two listing tools are clearly differentiated by their focus on top consumers versus name-based aggregation, with descriptions reinforcing this.
All tool names follow a consistent verb_noun pattern in snake_case (list_*, find_*, kill_*). There are no mixed conventions or vague verbs, making the API predictable and easy to navigate.
With 5 tools, the server is well-scoped for its purpose. It provides a comprehensive set for memory monitoring and process management without unnecessary bloat, and each tool earns its place.
The tool surface covers the core lifecycle: memory overview, process listing, grouping, stale detection, and killing. A minor gap is the lack of a tool to retrieve detailed information about a single process by PID, but this does not critically impede the server's primary functionality.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
An MCP memory server. One memory your agents share — across models, devices and apps.
Autopilot MCP server for GEO analyses, reports, content, audits, memories and agents.
8 MCP servers, 104+ tools: memory, social, PDF, email, images, calendar, scheduler, files.
Related MCP Servers
- AlicenseAqualityCmaintenanceMCP server for system monitoring, enabling users to ask about CPU, memory, disk, network, and processes on their system.93MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server that provides memory management tools for AI agents, enabling adding, searching, updating, and deleting memories via the Mem0 API.22MIT
- FlicenseNot gradedqualityDmaintenanceMCP server providing agent memory management with layered awakening, per-agent SQLite storage, and a dashboard for monitoring and administration.-
- AlicenseNot gradedqualityCmaintenanceAn MCP server for Windows process memory inspection/editing and crash dump analysis, enabling live memory scanning, patching, pointer resolution, disassembly, and offline dump examination via structured tool calls.MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- 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/paolino/mcp-memory-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server