mif-tools — Claude Code MCP server: features and setup
mif-tools converts, validates, and inspects AI agent memory files. Connect its MCP server to import or export memories in supported formats.
claude mcp add mif-tools -- uvx mif-toolsWhat mif-tools does
The server exposes tools to import and export memories, check documents, and identify file formats. The mif-tools command-line interface also converts files, such as mem0 exports to MIF or MIF documents to Markdown. MIF has a small set of required fields, with optional data for memory types, tags, and embeddings.
Install the Python package with its mcp extra, then run mif mcp; Claude Code can connect with claude mcp add mif-tools -- uvx mif-tools. Available server tools include export_memories, import_memories, validate_memories, inspect_memories, and list_formats. Supported formats include mem0, CrewAI, LangChain, generic JSON, and Markdown. Deep validation checks UUIDs, references, timestamps, and embedding dimensions, so use it when those fields matter to your files.
What it helps with
- convert a mem0 export to MIF
- turn a MIF document into Markdown
- check MIF references and timestamps
- identify a memory file's format
- import memories through MCP
Example prompts for the agent
- Convert
mem0_export.jsonto MIF and save it asmemories.mif.json. - Run deep validation on
memories.mif.jsonand show any warnings. - Import the memories from this file with mif-tools.
How to install mif-tools
Platform CLI
claude mcp add mif-tools -- uvx mif-toolsuvx runs the command named after the package; if the README names another one, use uvx --from mif-tools <command>
Platform CLI
codex mcp add mif-tools -- uvx mif-toolsuvx runs the command named after the package; if the README names another one, use uvx --from mif-tools <command>
Config file
{
"mcpServers": {
"mif-tools": {
"command": "uvx",
"args": [
"mif-tools"
]
}
}
}uvx runs the command named after the package; if the README names another one, use uvx --from mif-tools <command>
Config file
{
"servers": {
"mif-tools": {
"type": "stdio",
"command": "uvx",
"args": [
"mif-tools"
]
}
}
}uvx runs the command named after the package; if the README names another one, use uvx --from mif-tools <command>
Platform CLI
gemini mcp add mif-tools uvx mif-toolsuvx runs the command named after the package; if the README names another one, use uvx --from mif-tools <command>
Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about mif-tools
How do I install mif-tools in Claude Code?
Run claude mcp add mif-tools -- uvx mif-tools. To install the MCP server from the Python package, run pip install mif-tools[mcp], then start it with mif mcp.
What does mif-tools do?
It converts, validates, and inspects AI agent memory files. Its MCP server provides tools for importing and exporting memories.
Which memory formats does mif-tools support?
It supports MIF, mem0, CrewAI, LangChain, generic JSON, and Markdown with YAML frontmatter. Some formats can be detected automatically.