# File AI MCP server

> Provides AI agents with structured document awareness by converting local files into searchable profiles, anchors, and contextual snippets.

- Repository: https://github.com/flyfish-dev/file-ai
- Page: https://hostedmcp.org/servers/flyfish-dev/file-ai
- Transport: stdio
- Stars: 3
- License: Apache-2.0
- Latest version: 0.1.1

## Install

### Claude Code

```sh
claude mcp add file-ai -- npx -y @flyfish-dev/file-ai
```

### Cursor (`~/.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "file-ai": {
      "command": "npx",
      "args": [
        "-y",
        "@flyfish-dev/file-ai"
      ]
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "file-ai": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@flyfish-dev/file-ai"
      ]
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"file-ai","type":"stdio","command":"npx","args":["-y","@flyfish-dev/file-ai"]}'
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "file-ai": {
      "command": "npx",
      "args": [
        "-y",
        "@flyfish-dev/file-ai"
      ]
    }
  }
}
```

### Codex

```sh
codex mcp add file-ai -- npx -y @flyfish-dev/file-ai
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.file-ai]
command = "npx"
args = ["-y", "@flyfish-dev/file-ai"]
```

### Gemini CLI

```sh
gemini mcp add -s user file-ai npx -- -y @flyfish-dev/file-ai
```

### Gemini settings.json (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "file-ai": {
      "command": "npx",
      "args": [
        "-y",
        "@flyfish-dev/file-ai"
      ]
    }
  }
}
```

## Tools (5)

- `doc_analyze`
- `doc_read`
- `doc_search`
- `doc_context`
- `doc_list_formats`

## FAQ

### Does File AI modify my local files?

No, the server is read-only and does not mutate your source documents.

### What kind of file formats are supported?

It supports over 206 extensions, including text, code, Markdown, JSON, PDF, DOCX, XLSX/CSV, PPTX, EML, and archive manifests.
