**Source URL:** https://limited.veevavault.dev/qualityone/mcp/vault-mcp-server/getting-started/connect-claude-code

# Connect with Claude Code

<Aside type="note">
Vault AI agents are only available to customers who have licensed Vault AI.
</Aside>

This guide outlines how to connect the Vault MCP Server to Claude Code. You must have [Claude Code](https://code.claude.com/docs/en/quickstart) installed before you begin.

<Steps>
1.  Log in to Vault and generate an access token from your user profile. Copy the access token's value and store it safely, as you cannot access this value again.
    
2.  Run the following command from your terminal, replacing `{access_token}` with the value obtained in the previous step and replacing `{host}` with the URL from your Vault DNS. For additional options, see the [Claude Code Documentation](https://code.claude.com/docs/en/mcp#installing-mcp-servers).
    
    ```bash
    claude mcp add --transport http vault-mcp \
      https://{host}/api/ai/mcp \
      --header "Authorization: Bearer {access_token}"
    ```
    
3.  Launch Claude Code by entering `claude` in the terminal.
    
4.  Type `/mcp` to list available MCP servers and confirm that `vault-mcp` appears as connected.
    
5.  Ask Claude Code to perform a task that requires a Vault AI agent action, such as summarizing a document or checking the metadata on an object record. Claude Code calls the appropriate agent action exposed as an MCP tool, using your permissions in Vault.
    
    ```
    > Summarize document 1001_1_3 in Vault. What are the contraindications listed in document 1001_1_3?
    ```
</Steps>

You have successfully connected the Vault MCP Server.

---

**Previous:** [Authentication](/qualityone/mcp/vault-mcp-server/getting-started/authentication)  
**Next:** [Connect with Other MCP Clients](/qualityone/mcp/vault-mcp-server/getting-started/connect-other-mcp-clients)