> For the complete documentation index, see [llms.txt](https://docs.apryse.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.apryse.com/explore-docs-with-ai/connect-to-mcp/set-up-claude-code.md).

# Connect Claude Code to Apryse docs

Bring Apryse SDK documentation into your Claude Code workflows.

This guide explains how to connect Claude Code CLI to a Model Context Protocol (MCP) server that exposes published [Apryse docs](https://docs.apryse.com/). After configuring the connection, Claude Code can access your documentation directly and use it to answer questions, retrieve information, and assist with documentation-related tasks.

### Prerequisites

Before you start, make sure to:

* Obtain a paid [Claude Code subscription](https://code.claude.com/docs/en/quickstart#before-you-begin).
* Install Claude Code CLI using these [get-started instructions](https://code.claude.com/docs/en/quickstart#step-1-install-claude-code).
* [Sign in](https://code.claude.com/docs/en/quickstart#step-2-log-in-to-your-account) to your Claude Code account.

{% hint style="info" %}
**Info:** This guide uses the Claude Code terminal CLI. Learn about [other ways](https://code.claude.com/docs/en/overview#use-claude-code-everywhere) to use Claude Code.
{% endhint %}

### 1. Add the MCP server

First, add the MCP server to Claude Code and verify the connection. See the [Claude Code MCP quickstart](https://code.claude.com/docs/en/mcp-quickstart) for more.&#x20;

{% stepper %}
{% step %}
Open your terminal.
{% endstep %}

{% step %}
Add the MCP server:

{% tabs %}
{% tab title="Shell" %}
{% code overflow="wrap" %}

```shellscript
claude mcp add apryse-docs --scope user --transport http https://docs.apryse.com/~gitbook/mcp
```

{% endcode %}
{% endtab %}
{% endtabs %}

{% hint style="info" %}
Claude Code may ask you to approve MCP requests or commands. Review each request before allowing it. Some clients can save your approval preference for future requests.
{% endhint %}

* `apryse-docs` is the local name that Claude Code uses to identify the server.
* You can replace `apryse-docs` as you prefer. It doesn't need to match the site name.
* This server supports HTTP only. Don't use `stdio` or `sse`. Configure with `--transport http`.
  {% endstep %}

{% step %}
Launch Claude Code:

{% tabs %}
{% tab title="Shell" %}
{% code overflow="wrap" %}

```shellscript
claude
```

{% endcode %}
{% endtab %}
{% endtabs %}

If prompted, sign in and complete browser authentication. Subsequent launches typically open directly in your terminal.
{% endstep %}

{% step %}
Verify that the server was added successfully:

{% tabs %}
{% tab title="Shell" %}
{% code overflow="wrap" %}

```shellscript
claude mcp list
```

{% endcode %}
{% endtab %}
{% endtabs %}

Successful output:

{% tabs %}
{% tab title="Shell" %}
{% code overflow="wrap" %}

```shellscript
Checking MCP server health...

apryse-docs: https://docs.apryse.com/~gitbook/mcp (HTTP) - ✔ Connected

apryse-docs is connected and healthy.
```

{% endcode %}
{% endtab %}
{% endtabs %}
{% endstep %}
{% endstepper %}

### 2. Try a sample prompt

Ask Claude Code questions about the documentation content the MCP server exposes.

{% prompt description="Build an implementation" icon="claude" defaultExpanded="partial" %}

```markdown
How do I edit Microsoft Word documents in a web application using the Apryse DOCX Editor?
```

{% endprompt %}

{% prompt description="Update an implementation" icon="claude" defaultExpanded="partial" %}

```markdown
How do I add document annotations to my existing WebViewer integration?
```

{% endprompt %}

{% prompt description="Build an implementation" icon="claude" defaultExpanded="partial" %}

```markdown
How do I convert Microsoft Office documents to PDF using the Apryse Server SDK?
```

{% endprompt %}

### 3. Remove the MCP server

These steps are optional and remove the Apryse documentation MCP server.

{% stepper %}
{% step %}
Remove the configured MCP server:

{% tabs %}
{% tab title="Shell" %}
{% code overflow="wrap" %}

```shellscript
claude mcp remove apryse-docs
```

{% endcode %}
{% endtab %}
{% endtabs %}
{% endstep %}

{% step %}
Check that the MCP server is no longer configured:

{% tabs %}
{% tab title="Shell" %}
{% code overflow="wrap" %}

```shellscript
claude mcp list
```

{% endcode %}
{% endtab %}
{% endtabs %}
{% endstep %}
{% endstepper %}

### Troubleshooting

<details>

<summary>Claude Code cannot find or connect to the MCP server.</summary>

* Verify that the MCP server URL is correct.
* Run the `claude mcp add` command again.
* Confirm that the MCP server supports HTTP transport.
* Don't use `stdio` or `sse` transport types.
* Complete any required authentication when prompted.

</details>

<details>

<summary>Claude Code cannot access documentation content.</summary>

* Confirm that the documentation has been published.
* Verify that the MCP server has access to the documentation content.
* Verify that your account has permission to access the documentation.

</details>

<details>

<summary>Claude Code doesn't return the expected results.</summary>

* Verify that the content exists in the published documentation.
* Try a more specific prompt.
* Ask Claude Code to search for a specific topic or page.
* Confirm that the content is available through the MCP server.

</details>

<details>

<summary>Claude Code prompts for approval repeatedly.</summary>

* Review and approve the requested action.
* If available, choose the option to remember your approval preferences.
* Verify that your approval settings haven't been reset.
* Restart Claude Code and try again.

</details>

### Next steps

Explore setup guides for other supported AI coding assistants:

* [Set up Codex](/explore-docs-with-ai/connect-to-mcp/set-up-codex.md)
* [Set up Cursor](/explore-docs-with-ai/connect-to-mcp/set-up-codex.md)
* [Set up GitHub Copilot](/explore-docs-with-ai/connect-to-mcp/set-up-github-copilot.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.apryse.com/explore-docs-with-ai/connect-to-mcp/set-up-claude-code.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
