Connect an MCP client
fsindex-mcp is a local MCP server that communicates over standard input/output. Your MCP client starts it as a child process; the server then connects to the running fsindexd daemon through its Unix socket.
Before connecting
Follow the installation and daemon startup instructions first.
Recommended: ask your agent
If you are using an agent that can configure its own MCP servers, paste this into your conversation first:
fsindex is installed on this system and ready to use. Configure fsindex for yourself as an MCP server using https://fsindex.zyx0.xyz/docs/mcp/setup, then verify that its search, count, and status tools are available. Use the running fsindexd daemon and the default socket unless status shows otherwise. Reload or start a new session if needed, then tell me when it is ready.
This is usually the fastest route: the agent can use its own configuration workflow and confirm the connection in the same conversation. For manual setup, continue below.
Manual MCP setup
Codex
Add the stdio server from a terminal:
codex mcp add fsindex -- fsindex-mcp
codex mcp list
For a custom socket:
codex mcp add fsindex --env FSINDEX_SOCKET=/path/to/fsindex.sock -- fsindex-mcp
Or configure ~/.codex/config.toml directly:
[mcp_servers.fsindex]
command = "fsindex-mcp"
[mcp_servers.fsindex.env]
FSINDEX_SOCKET = "/path/to/fsindex.sock" # omit when using the default
Codex's CLI, desktop app, and IDE extension share MCP configuration for the same host. In the app or extension, you can also add an STDIO server named fsindex with the command fsindex-mcp.
Hermes Agent
Add the server from a terminal:
hermes mcp add fsindex --command fsindex-mcp
Hermes connects immediately and discovers the server's tools. Enable search, count, and status when it asks which tools to expose.
Verify the saved connection:
hermes mcp test fsindex
For a custom socket:
hermes mcp add fsindex \
--command fsindex-mcp \
--env FSINDEX_SOCKET=/path/to/fsindex.sock
Start a new session after adding the server, or run /reload-mcp in an existing Hermes session.
OpenClaw
Add the local stdio server and verify it with a live probe:
openclaw mcp add fsindex --command fsindex-mcp
openclaw mcp doctor fsindex --probe
For a custom socket:
openclaw mcp add fsindex \
--command fsindex-mcp \
--env FSINDEX_SOCKET=/path/to/fsindex.sock
You can also add it from Control UI → Settings → MCP. Choose Stdio, name the server fsindex, and use fsindex-mcp as the command.
Claude Desktop and generic MCP clients
Add this server entry to the client's MCP configuration:
{
"mcpServers": {
"fsindex": {
"command": "fsindex-mcp"
}
}
}
If needed, set a custom socket in env:
{
"mcpServers": {
"fsindex": {
"command": "/absolute/path/to/fsindex-mcp",
"env": {
"FSINDEX_SOCKET": "/path/to/fsindex.sock"
}
}
}
}
OpenCode
Add a local server to opencode.json:
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"fsindex": {
"type": "local",
"command": ["fsindex-mcp"],
"enabled": true
}
}
}
Verify the connection
Ask the client to call the status tool. A healthy response includes index totals, roots, volumes, and scan_state.
If the server starts but cannot connect, the tool returns an error naming the socket it tried. Confirm that fsindexd is running and that both processes resolve the same socket.
The MCP server publishes usage guidance during initialization, including when to prefer count and how to interpret incomplete scans. Clients that honor MCP server instructions receive it automatically.