> For the complete documentation index, see [llms.txt](https://docs.ngsurvey.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ngsurvey.com/ai-suite/artemis-ai-agent/mcp/claude-setup.md).

# Claude Setup

To connect Claude Code to ngSurvey, open a terminal in the project directory where you want to use Artemis. Run the command below, replacing `yourngsurveyhost` with the hostname of your ngSurvey installation and `yourbearertoken` with a valid ngSurvey bearer token that you can generate in your account [developer section](https://docs.ngsurvey.com/personal-account/developer.md). The `--scope local` option keeps the connection private to you and available in the current project.&#x20;

```
claude mcp add --transport http --scope local artemis https://yourngsurveyhost/artemis --header "Authorization: Bearer yourbearertoken"
```

Once added you can verify if its properly setup using.

```
claude mcp list    
```

You can then use all the available ngSurvey features directly from your Claude agent.&#x20;

{% hint style="info" %}
If you want to use operations on a given survey without having to specify the survey all the time you may instruct Claude to be on that survey eg: "Set current context to the "your survey name or id""
{% endhint %}


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.ngsurvey.com/ai-suite/artemis-ai-agent/mcp/claude-setup.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
