> ## Documentation Index
> Fetch the complete documentation index at: https://docs.activeviam.com/llms.txt
> Use this file to discover all available pages before exploring further.

# How to set up the Atoti MCP Server in Java

> How to add the Atoti MCP Server to an Atoti Java project via the `starter-ai-mcp-server` and `mcp-server-spring` Maven dependencies, with steps to verify the MCP Server initializes and its `POST /mcp` endpoint is accessible.

> [!NOTE]
>
> ### Atoti Intelligence SDK
>
> This is part of the Atoti Intelligence SDK offer.

This guide explains how to add the MCP Server to an Atoti Java project. Read more about best practices for configuring MCP across a deployment in [What are the best practices for MCP configuration?](https://docs.activeviam.com/atoti-intelligence/6.2/developer-guide/mcp-server/introduction.md#what-are-the-best-practices-for-mcp-configuration).

## Prerequisites

Before setting up the MCP Server, ensure the following requirements are met:

* Java project
* A license including the Atoti Intelligence Extension tier, which itself requires Essentials

## Add the MCP Server dependencies to the project

Add the following to `pom.xml`:

```xml theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
<dependency>
  <groupId>com.activeviam.springboot</groupId>
  <artifactId>starter-ai-mcp-server</artifactId>
  <version>${activepivot.version}</version>
</dependency>
```

```xml theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
<dependency>
  <groupId>org.springframework.ai</groupId>
  <artifactId>spring-ai-starter-mcp-server-webmvc</artifactId>
  <version>${spring-ai.version}</version>
</dependency>
```

## Verify the setup

After adding the dependencies, verify that the MCP Server is available:

1. Build the project
2. Start the Atoti application
3. Check the application logs for MCP Server initialization messages
4. Verify that the MCP Server endpoint is accessible, at `POST /mcp`

> [!NOTE]
>
> `POST /mcp` is the Streamable HTTP transport, which the starter configures by default. The older
> server-sent events transport at `/sse` is deprecated for removal in Spring AI 2.0.0; use `/mcp`
> everywhere. See [MCP transport](https://docs.activeviam.com/atoti-intelligence/6.2/developer-guide/mcp-server/setup/configure-oauth2-self-issued.md#which-mcp-transport-does-self-issued-mode-use).

## Related reading

After setting up the MCP Server, proceed to:

* [How to set up the Atoti MCP Server in Python](https://docs.activeviam.com/atoti-intelligence/6.2/developer-guide/mcp-server/setup/setup-python.md)
* [Connect with Postman](https://docs.activeviam.com/atoti-intelligence/6.2/developer-guide/mcp-server/setup/connect-with-postman.md) to test the MCP Server
* [Connect with Claude](https://docs.activeviam.com/atoti-intelligence/6.2/developer-guide/mcp-server/setup/connect-with-claude.md) to integrate with Claude AI
* [Configure OAuth 2.1 discovery](https://docs.activeviam.com/atoti-intelligence/6.2/developer-guide/mcp-server/setup/configure-oauth2-discovery.md) to enable browser-based SSO
  against your IdP for MCP clients
* [Add custom tools](https://docs.activeviam.com/atoti-intelligence/6.2/developer-guide/mcp-server/custom-tools.md) to extend functionality
* [MCP credentials page](https://docs.activeviam.com/atoti-intelligence/6.2/developer-guide/mcp-server/setup/mcp-credentials-page.md) to mint long-lived bearer tokens for MCP clients (opt-in feature, disabled by default)
* [How connecting to other MCP Servers works](https://docs.activeviam.com/atoti-intelligence/6.2/developer-guide/mcp-server/connect-to-other-servers/how-it-works.md) to use
  another server's tools as this server's own, with setup guides for
  [Java](https://docs.activeviam.com/atoti-intelligence/6.2/developer-guide/mcp-server/connect-to-other-servers/setup-java.md) and [Python](https://docs.activeviam.com/atoti-intelligence/6.2/developer-guide/mcp-server/connect-to-other-servers/setup-python.md)
