File Context MCP Server

Enables querying Large Language Models with context derived from local files.

Local serverstdioTypeScript 1

What is the File Context MCP server?

If you already use File Context, the file context mcp server is the piece that lets your assistant work with it directly. Enables querying Large Language Models with context derived from local files.

What the server does

export const fileUtils = { isTextFile(filePath: string): boolean { const textExtensions = [ '.txt', '.md', '.js', '.ts', '.json', '.yaml', '.yml', '.html', '.css', '.csv', '.xml', '.log', '.env', '.jsx', '.tsx', '.py', '.java', '.cpp', '.c', '.h' ]; return textExtensions.includes(path.extname(filePath).toLowerCase()); },

File Context MCP is a TypeScript-based application that provides an API for querying Large Language Models (LLMs) with context from local files. It supports multiple LLM providers (Ollama and Together.ai) and can process various file types to generate context-aware responses.

Installation

The server ships on npm as @smithery/cli, so your MCP client can launch it on demand — there is no separate build step. Add the server block to your client's configuration, restart it, and the tools register themselves.

Credentials and setup notes

Configuration is passed through the environment: TOGETHER_API_KEY, OLLAMA_BASE_URL. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.

Worth knowing first

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Where it fits

This sits in the developer tooling group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. It is maintained by compiledwithproblems; worth a glance at recent repository activity before you build anything load-bearing on it.

This entry was verified against File Context's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.

How to install the File Context MCP server

{
  "mcpServers": {
    "file-context-1": {
      "command": "npx",
      "args": ["-y", "@smithery/cli"],
      "env": {
        "TOGETHER_API_KEY": "your-value",
        "OLLAMA_BASE_URL": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

VariableDescriptionRequired
TOGETHER_API_KEYCredential the server authenticates with.Yes
OLLAMA_BASE_URLEndpoint or connection string the server talks to.Yes

Frequently asked questions

File Context currently supports Ollama (for local LLMs) and Together.ai (for cloud-based LLMs). The architecture is designed to be extensible for other providers.