Skip to content

Connect an AI tool to VEVA with MCP

With an MCP connection, an AI tool such as GitHub Copilot in VS Code can read and work with your site's content in VEVA. You create an API key, copy the MCP server address and enter both in the tool.

For: Web managers
Permissions: Access to Users in the VEVA main menu

MCP (Model Context Protocol) is a standard that AI tools use to connect to other systems. An API key is a long code the tool uses instead of signing in.

Before you start

  • You need to be signed in to the VEVA back end (/veva) with an account that can see Users in the main menu.
  • You need an AI tool that supports MCP over HTTP and can send an API key, for example VS Code with GitHub Copilot, Visual Studio or Claude Code.
  • Decide which user will own the key. The tool gets exactly the same permissions as that user.

Caution: The AI tool can do anything the user can do in VEVA, including changing content and publishing it to the live site. The key replaces signing in, including two-step verification. Treat it like a password.

Tip: It is good practice to use a separate user for the connection, with only the roles it needs. You can then revoke its access without affecting anyone else.

1. Create an API key

  1. Select the VEVA logo in the top-left corner. The main menu opens.
  2. Select Users. A list of users opens.
  1. Enter the user's name in the Search for users ... field and select the user in the list.
  2. Select Edit. The Edit user dialog opens.
  3. Open the Advanced tab.
  4. Select Generate key. A new key appears in the API Key field.
  1. Copy the key: select all the text in the field and press Ctrl+C. Store it somewhere safe, such as a password manager.
  2. Select Save.

Note: The key is shown only once. If you lose it, you have to generate a new one. If the user already has a key, a message tells you so. The new key replaces the old one when you save, and tools using the old key stop connecting.

2. Get the MCP server address

  1. Select the VEVA logo in the top-left corner. The main menu opens.
  2. Select VEVA (version number) ... at the bottom of the menu. The About VEVA dialog opens.
  3. Open the MCP Server tab.
  4. Select the copy button next to HTTP Endpoint. The address, for example https://<your-site-address>/mcp, is copied to the clipboard.

3. Connect your AI tool

The MCP Server tab shows ready-made settings for VS Code and Visual Studio. Follow the section for your tool.

VS Code (GitHub Copilot)

  1. In the MCP Server tab, select the copy button next to the settings under VS Code.
  1. In VS Code, create the file .vscode/mcp.json in your project folder.
  2. Paste the settings into the file and save it.
  3. Select Start above veva-pages in the file.
  4. Paste the API key when VS Code asks for the Veva API Bearer token and press Enter. VS Code stores the key securely, not in the file.

Visual Studio

  1. In the MCP Server tab, select the copy button next to the settings under Visual Studio.
  2. Create the file .vs/mcp.json in your solution folder and paste the settings into it.
  3. Replace <your-token> with the API key and save the file.

Caution: In Visual Studio the key is stored as plain text in the file. Never add the file to version control (such as Git) and do not share it.

Claude Code

The tab does not show settings for Claude Code, but the connection is the same.

  1. Store the key in an environment variable. In PowerShell:
[Environment]::SetEnvironmentVariable('VEVA_API_KEY', '<the-API-key>', 'User')
  1. Open a new PowerShell window so the variable takes effect.
  2. Register the connection. Replace <address> with the address from section 2:
claude mcp add --transport http veva <address> --header 'Authorization: Bearer ${VEVA_API_KEY}'

Note: The tool must be able to send the API key in an authorisation header (Authorization). Tools that only offer signing in through a browser (OAuth) cannot connect to VEVA this way.

Result

The tool connects to VEVA and the VEVA tools appear in its tool list. Try asking: “Which pages are on the site?” The tool answers with pages from the page tree.

If the tool gets a 401 (Unauthorized) error, the key was not accepted. Check that it was copied correctly and that you selected Save in step 8 of section 1.

Revoke a key

Do this if the key is lost or leaked, or the connection is no longer needed.

  1. Open the user's Advanced tab (steps 1–5 in section 1).
  2. Select Remove key. A confirmation dialog opens.
  3. Confirm in the dialog. The key stops working at once, and you do not need to select Save.

Back to top

Type to search the docs, components and API.

↑↓ to move ↵ to open Esc to close Search by Veva