# Nifra docs

> Nifra docs is an open-source MCP server for developer tools. MCP server that serves Nifra docs, runnable examples and API types to AI assistants. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** API
- **Website:** https://nifra.dev
- **Repository:** https://github.com/nifrajs/nifra
- **MCP Registry name:** io.github.nifrajs/nifra-docs
- **Categories:** developer tools
- **Listing updated:** 2026-11-14

## About

Nifra is an open-source TypeScript framework where one route definition drives the typed client, the validation, the docs and the agent tools. This server exposes that documentation layer to an assistant, so a model writing Nifra code can read the current docs, examples and API types instead of guessing from stale training data.

It is a hosted endpoint at mcp.nifra.dev over streamable HTTP, with nothing to install. The framework's own `nifra mcp` command is a separate, project-level server that gives coding agents the live route table, a scaffolder and the check and assure gates.

## Features

- **Docs for assistants:** Gives any MCP client access to the Nifra documentation.
- **Runnable examples:** Serves example code an assistant can adapt.
- **API types:** Exposes the framework's API types so generated code matches the real signatures.
- **Hosted endpoint:** Connects over streamable HTTP at mcp.nifra.dev with no local install.

## Good for

- Ask an assistant to scaffold a Nifra API using current docs
- Look up the signature of a Nifra helper while coding
- Check an example before copying it into a project
- Keep a coding agent aligned with the framework version it targets

## Install

### Claude Code (Terminal)

```sh
claude mcp add --transport http nifra-docs https://mcp.nifra.dev
```

### Claude Desktop (Settings → Connectors → Add custom connector)

```sh
https://mcp.nifra.dev
```

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

```json
{
  "mcpServers": {
    "nifra-docs": {
      "url": "https://mcp.nifra.dev"
    }
  }
}
```

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

```json
{
  "servers": {
    "nifra-docs": {
      "type": "http",
      "url": "https://mcp.nifra.dev"
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "nifra-docs": {
      "serverUrl": "https://mcp.nifra.dev"
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "nifra-docs": {
      "type": "http",
      "url": "https://mcp.nifra.dev"
    }
  }
}
```

## Tools

- `nifra_docs`: Search nifra's framework documentation and get back ONLY the matching sections - auth, uploads, ISR, WebSockets, loaders, deployment, anything. Call with no query for the cheap section index; pass query (e.g. "isr revalidate") for the top matching sections. Use this instead of reading llms-full.txt (~150 KB) whole. For the EXACT TypeScript of a type/interface/function, call nifra_types instead (do
- `nifra_example`: Get a verified, copy-pasteable Nifra code example for a task - auth route, file upload, ISR page, loader/action, typed client, SSE, deployment, and more. Every snippet is typechecked against the installed Nifra version, so it compiles as-is. Returns code as text for direct use. Call with no query for the grouped index; pass query (e.g. "protected route", "upload", "isr revalidate") for matching sn
- `nifra_types`: Get the exact TypeScript declaration of any exported @nifrajs/* symbol - interface, type, class, function, or const. Each signature is generated from the package's built .d.ts and returns the complete declaration rather than prose. Pass `name` for an exact symbol (e.g. "RateLimitStore", "RouteSchema", "Context", "rateLimit"); pass `query` to search by keyword; omit both for the per-package index o
- `nifra_learn`: Walk the guided path to build a nifra app end to end - an ORDERED sequence (create → page route → loader → typed API → typed client → auth → background jobs → deploy), not the random-access search of nifra_docs/nifra_example. Call with no args for the step index; pass `step: N` for that step's goal, how to do it (which tool emits the correct artifact), and how to verify it. Use it when scaffolding
- `nifra_frontend`: Diagnose a client-side Nifra problem by symptom across every adapter (React, Preact, Solid, Vue, Svelte, and vanilla). Returns the likely cause, a concrete fix, and how to verify it. Covers the Nifra server/client seam, hydration mismatches, duplicated framework runtimes, loader-data typing, and adapter-specific reactivity guidance. Call with no args for the index; pass `symptom` (e.g. "hydration 
- `nifra_runtime`: Explain a behavior that differs between Bun, Node, Deno and Cloudflare Workers by symptom. These are runtime behaviors, not Nifra's: request-target and Host handling, pipelining, JSON content-type, engine error messages, recursion depth, .env loading, and runtime-specific APIs. Returns what each runtime does, the fix (and the Nifra option that decides it when there is one), how to verify it, and t
- `nifra_gallery`: Open an interactive, filterable gallery of ALL of nifra's verified code examples (MCP Apps widget) - for browsing and discovering what exists. NOT for fetching one snippet as text: use nifra_example for that. Pass query to pre-filter; the widget also filters client-side.

## FAQ

### Is Nifra open source?

The Nifra site says the framework is open source under the MIT licence.

### How do I connect?

Point an MCP client at https://mcp.nifra.dev, which uses streamable HTTP.

### Which runtimes does Nifra target?

The framework runs on Bun, Node, Deno and the edge.

### Does this server edit my project?

This endpoint serves docs, examples and types. The separate nifra mcp command is the one that scaffolds files and runs checks in a workspace.

### Is Nifra docs free?

Yes. Nifra docs is open source, so you can use and self-host it for free.

### How do I add Nifra docs to Claude Code?

Run this command in your terminal: claude mcp add --transport http nifra-docs https://mcp.nifra.dev

### What are the best alternatives to Nifra docs?

The closest alternatives to Nifra docs are REA, Codebase Memory, GitHub, Serena MCP: the IDE for your agent and XERJ.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github-2): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [Ouroboros](https://ai-powered.com/mcp/ouroboros): Ouroboros is an open-source MCP server for developer tools.
- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.
- [Concord MCP](https://ai-powered.com/mcp/concord-mcp): Concord MCP is a freemium MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/nifra-docs
