Skip to main content
AgentFS can run as an MCP (Model Context Protocol) server, exposing filesystem and key-value operations to AI assistants like Claude Desktop.

Starting the MCP Server

This starts an MCP server that exposes AgentFS tools over stdio.

Available Tools

Filesystem Tools

Key-Value Tools

Limiting Exposed Tools

For security, you can limit which tools are available:

Security Considerations

The MCP server gives AI assistants direct access to the AgentFS filesystem. Consider these security practices:
  • Limit tools - Only expose tools the assistant needs
  • Use overlays - Create overlay filesystems instead of giving access to real directories
  • Review the agent database - Check .agentfs/*.db periodically

Debugging

Check if the MCP server is working:

Next Steps

NFS Server

Remote access via NFS

Copy-on-Write Overlays

How isolation works