ai-memory-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| AI_MEMORY_HOST | No | HTTP server bind address | 127.0.0.1 |
| AI_MEMORY_PORT | No | HTTP server port | 8000 |
| AI_MEMORY_DB_PATH | No | SQLite database path | ~/.ai-memory/ai_memory.db |
| AI_MEMORY_MODEL_PATH | No | Embedding model cache | ~/.ai-memory/models |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| save_summaryA | 保存会话摘要到数据库,同步更新全文索引和向量索引。 Args: params (SaveSummaryInput): 包含: - session_id (str): 唯一会话 ID,不可重复 - task_title (str): 任务标题 - summary_content (str): 摘要正文内容 - status (TaskStatus): 任务状态,默认 completed - next_steps (Optional[str]): 下一步计划 - tags (Optional[str]): 标签,逗号分隔 - module (Optional[str]): 所属模块 - file_paths (Optional[str]): 涉及文件路径,逗号分隔 - project_name (Optional[str]): 项目名称 - branch_name (Optional[str]): 分支名称 Returns: Dict: {"success": bool, "message": str} |
| update_summaryA | 更新已有会话摘要的状态或内容,同步更新全文索引。 Args: params (UpdateSummaryInput): 包含: - session_id (str): 要更新的会话 ID - new_status (Optional[TaskStatus]): 新状态 - updated_content (Optional[str]): 新的摘要内容 Returns: Dict: {"success": bool, "message": str} |
| add_decisionB | 为指定会话添加关键决策记录。 Args: params (AddDecisionInput): 包含: - session_id (str): 关联的会话 ID - decision_type (str): 决策类型,如 tech_stack / api_design / architecture - description (str): 决策描述 - reasoning (Optional[str]): 决策理由 Returns: Dict: {"success": bool, "message": str} |
| maintenanceA | 执行数据库维护:重建 FTS5 全文索引、压缩数据库,并持久化向量存储。 Returns: Dict: {"success": bool, "message": str} |
| search_summariesB | 搜索会话摘要,支持关键词、标签、模块、状态、项目、分支过滤,以及 FTS5 全文检索和向量语义检索。 Args: params (SearchSummariesInput): 包含: - query (Optional[str]): 搜索关键词 - tags (Optional[str]): 标签过滤,模糊匹配 - module (Optional[str]): 模块过滤,模糊匹配 - status (Optional[TaskStatus]): 状态过滤,精确匹配 - project_name (Optional[str]): 项目名称过滤,精确匹配 - branch_name (Optional[str]): 分支名称过滤,精确匹配 - use_fts (bool): 是否使用 FTS5 全文检索,默认 False - use_vector (bool): 是否使用向量语义检索,默认 False - limit (int): 最大返回条数,默认 10 Returns: Dict: {"success": bool, "data": List[Dict]} |
| search_summaries_ftsA | 使用 FTS5 全文索引搜索会话摘要,适合精确关键词匹配场景。 Args: params (SearchSummariesFtsInput): 包含: - query (str): 全文检索关键词,支持 FTS5 查询语法 - project_name (Optional[str]): 项目名称过滤,精确匹配 - branch_name (Optional[str]): 分支名称过滤,精确匹配 - status (Optional[TaskStatus]): 状态过滤,精确匹配 - limit (int): 最大返回条数,默认 10 Returns: Dict: {"success": bool, "data": List[Dict]} |
| get_summary_by_idA | 根据 session_id 精确查询单条摘要记录。 Args: params (GetSummaryByIdInput): 包含: - session_id (str): 目标会话 ID Returns: Dict: {"success": bool, "data": Dict} |
| list_recent_sessionsA | 列出最近的会话摘要,支持按项目和分支过滤。 Args: params (ListRecentSessionsInput): 包含: - limit (int): 最大返回条数,默认 10 - project_name (Optional[str]): 项目名称过滤,精确匹配 - branch_name (Optional[str]): 分支名称过滤,精确匹配 Returns: Dict: {"success": bool, "data": List[Dict]} |
| init_sessionA | 会话启动时调用,返回最近 3 天内进行中的任务列表,帮助恢复上下文。 Args: params (InitSessionInput): 包含: - project_name (Optional[str]): 项目名称过滤,精确匹配 - branch_name (Optional[str]): 分支名称过滤,精确匹配 Returns: Dict: {"success": bool, "data": List[Dict], "prompt": str} |
| weekly_reviewA | 生成本周项目周报,汇总完成任务、关键决策和下一步建议。 Args: params (WeeklyReviewInput): 包含: - project_name (Optional[str]): 项目名称过滤,精确匹配 - branch_name (Optional[str]): 分支名称过滤,精确匹配 Returns: Dict: {"success": bool, "data": {"report": str}} |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
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/zhanpu89/ai-memory-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server