---
title: "Nutrient Web SDK MCP server for AI coding agents"
canonical_url: "https://www.nutrient.io/guides/web/mcp-server/"
md_url: "https://www.nutrient.io/guides/web/mcp-server.md"
last_updated: "2026-07-06T00:00:00.000Z"
description: "Add the Nutrient Web SDK MCP server so Claude Code, Cursor, and other MCP clients can search the SDK's API types, guides, examples, and changelog while they build."
---

# MCP server

The Nutrient Web SDK MCP server gives MCP-compatible AI tools, such as Claude Code, Cursor, and VS Code, on-demand access to Nutrient Web SDK documentation, API type declarations, framework guides, code examples, and the changelog. With the server connected, your agent searches the real API instead of guessing, so it scaffolds and debugs integrations against up-to-date knowledge.

The server is published on npm as [`@nutrient-sdk/viewer-mcp`](https://www.npmjs.com/package/@nutrient-sdk/viewer-mcp) and runs locally over stdio through `npx`, with no account or API key required.

## Claude Code

Run the following in your project to register the server:

```

claude mcp add Nutrient -- npx @nutrient-sdk/viewer-mcp

```

The tools then load automatically in future sessions.

## Cursor, VS Code, and other MCP clients

Add the server to your client's MCP configuration:

```json

{
  "mcpServers": {
    "Nutrient": { "command": "npx", "args": ["@nutrient-sdk/viewer-mcp"] }
  }
}

```

## What the server exposes

Once connected, the agent can call these tools:

| Tool                 | Description                                      |
| -------------------- | ------------------------------------------------ |
| `list_resources`     | Enumerate available MCP resources.               |
| `list_names`         | List all API type names.                         |
| `get_api`            | Fetch a specific API type by name.               |
| `search_api`         | Fuzzy search API types, methods, and properties. |
| `search_guides`      | Search 500+ framework guides.                    |
| `get_guide`          | Get full guide content by ID.                    |
| `get_examples`       | Search 80+ code examples.                        |
| `get_playground_url` | Get a Playground URL by example ID.              |
| `search_changelog`   | Search the changelog and release notes.          |

It also exposes three resources. Start with `resource://nutrient-viewer-mcp/guidelines.md`, then the SDK introduction and the TypeScript declarations.

## Other AI-agent options

If you only need a first integration prompt, start with the [AI quick start](https://www.nutrient.io/sdk/web/getting-started.md) on the Web SDK getting started page. It gives your agent copy-paste instructions for choosing the right setup and reading the relevant guides.

For ongoing SDK context, use this MCP server to expose guides, API types, examples, and changelog as tools in MCP-compatible clients. If your agent supports skills or plugins, you can install the Nutrient Web SDK [agent skill](https://www.nutrient.io/guides/web/agent-skill.md) alongside, or instead of, the MCP server.
---

## Related pages

- [JavaScript PDF library](/guides/web.md)
- [Agent skill](/guides/web/agent-skill.md)
- [Appian PDF viewer](/guides/web/appian.md)
- [JavaScript barcode library: Scan, read, and generate barcodes](/guides/web/barcodes.md)
- [Best practices](/guides/web/best-practice.md)
- [Changelog for Web](/guides/web/changelog.md)
- [Explore interactive JavaScript PDF demos](/guides/web/demo.md)
- [Download our JavaScript library](/guides/web/downloads.md)
- [Developer guides for JavaScript PDF library](/guides/web/intro.md)
- [Knowledge base](/guides/web/kb.md)
- [Mendix PDF viewer](/guides/web/mendix.md)
- [Contributing to Nutrient projects](/guides/web/miscellaneous/contributing.md)
- [Perform OCR on PDF documents](/guides/web/ocr.md)
- [OutSystems PDF viewer](/guides/web/outsystems.md)
- [Samples](/guides/web/samples.md)
- [Self-host assets in Web SDK](/guides/web/self-host-assets.md)

