|
| 1 | +--- |
| 2 | +title: "Maia Plan as MCP Server" |
| 3 | +url: /developerportal/maia-plan-mcp/ |
| 4 | +description: "Describes how to configure and use Maia Plan as an MCP server to retrieve project scope and solution content." |
| 5 | +weight: 10 |
| 6 | +--- |
| 7 | + |
| 8 | +## Introduction |
| 9 | + |
| 10 | +The Maia Plan MCP Server provides read-only access to selected Maia Plan artifacts through the Model Context Protocol (MCP). External MCP clients can retrieve plan content, including project scope and project solution, including epics and stories. |
| 11 | + |
| 12 | +The MCP server has the following key characteristics: |
| 13 | + |
| 14 | +* Read-only interface – No create, update, or delete operations are supported. |
| 15 | +* Project-level access control – Each request is validated against user permissions, so users can only retrieve data for projects they are allowed to view. |
| 16 | +* Focused tool set – The following tools are available to be used by AI agents: |
| 17 | + |
| 18 | + * [`Get_Project_Plan`](#get-plan) |
| 19 | + * [`Get_Plan_Content`](#get-content) |
| 20 | + |
| 21 | +## Prerequisites |
| 22 | + |
| 23 | +Before you can use the Maia Plan MCP Server, you need the following: |
| 24 | + |
| 25 | +* Access to at least one Maia Plan project in Mendix Portal. |
| 26 | +* A personal access token (PAT) with the appropriate scopes. For details on how to create and configure your PAT, refer to: |
| 27 | + |
| 28 | + * The [Personal Access Tokens](/portal/user-settings/#pat) section of the *User Settings* page |
| 29 | + * [Setting Up Your Personal Access Token](/apidocs-mxsdk/mxsdk/set-up-your-pat/) |
| 30 | + |
| 31 | +* An MCP client capable of connecting to external servers, such as Claude Code or a custom MCP implementation. |
| 32 | + |
| 33 | +## Configuring the MCP Server {#configure} |
| 34 | + |
| 35 | +To connect your MCP client to the Maia Plan MCP Server, configure the server URL and authentication method. |
| 36 | + |
| 37 | +### Server Configuration |
| 38 | + |
| 39 | +Configure your MCP client with the following server details: |
| 40 | + |
| 41 | +* **Protocol** – The server uses the standard MCP protocol over HTTPS. |
| 42 | +* **URL** – The Maia Plan MCP Server endpoint URL, which is `https://plan.home.mendix.com/mcp-server/mcp`. |
| 43 | + |
| 44 | +### Authentication {#authentication} |
| 45 | + |
| 46 | +The Maia Plan MCP Server requires authentication using a personal access token (PAT). |
| 47 | + |
| 48 | +Create a PAT with the `mx:plan:v1:read` scope for Maia Plan access. For details on how to create and configure your PAT, refer to: |
| 49 | + |
| 50 | +* The [Personal Access Tokens](/portal/user-settings/#pat) section of the *User Settings* page |
| 51 | +* [Setting Up Your Personal Access Token](/apidocs-mxsdk/mxsdk/set-up-your-pat/) |
| 52 | + |
| 53 | +Store your PAT securely. Do not hardcode credentials into scripts or configuration files that may be committed to version control. |
| 54 | + |
| 55 | +The recommended approach is to save your PAT as an environment variable. For example: |
| 56 | + |
| 57 | +* On macOS and Linux, add the following line to your shell profile (`~/.bashrc`, `~/.zshrc`, or similar): |
| 58 | + |
| 59 | + ```bash |
| 60 | + export MENDIX_TOKEN="your-personal-access-token-here" |
| 61 | + ``` |
| 62 | + |
| 63 | +* On Windows, set the environment variable using the System Properties dialog or PowerShell: |
| 64 | + |
| 65 | + ```powershell |
| 66 | + [Environment]::SetEnvironmentVariable("MENDIX_TOKEN", "your-personal-access-token-here", "User") |
| 67 | + ``` |
| 68 | + |
| 69 | +### Configuring Your MCP Client |
| 70 | + |
| 71 | +The steps to configure your MCP client depend on the client you are using. The following sections provide examples for common MCP clients. |
| 72 | + |
| 73 | +#### Configuring Claude Code |
| 74 | + |
| 75 | +To configure Claude Code to connect to the Maia Plan MCP Server, follow these steps: |
| 76 | + |
| 77 | +1. Open your Claude Code configuration file. |
| 78 | +2. Add the Maia Plan MCP Server to the list of available MCP servers. |
| 79 | +3. Specify the server URL and authentication method (using the `MENDIX_TOKEN` environment variable). |
| 80 | +4. Save the configuration file. |
| 81 | + |
| 82 | +For detailed instructions, refer to the [Claude Code documentation](https://claude.com/docs/connectors/building/mcp). |
| 83 | + |
| 84 | +#### Configuring Other MCP Clients |
| 85 | + |
| 86 | +For other MCP clients, refer to the client documentation for instructions on adding external MCP servers and configuring authentication. Most MCP clients support environment variable-based authentication, which is the recommended approach. |
| 87 | + |
| 88 | +## Available Tools {#tools} |
| 89 | + |
| 90 | +The Maia Plan MCP Server provides the following tools to be used by AI agents for retrieving plan data. You can communicate with AI agents using natural language. |
| 91 | + |
| 92 | +### Get_Project_Plan {#get-plan} |
| 93 | + |
| 94 | +This tool is used by AI agents to search for Maia Plan projects using the project title, the project ID, or keywords. The tool returns a sorted list of accessible plans, along with their UUIDs. You can use a plan's UUID to retrieve plan details using the `Get_Plan_Content` tool. |
| 95 | +
|
| 96 | +The tool only returns plans for projects you have permission to view. If you do not have access to a project, it does not appear in the search results. |
| 97 | +
|
| 98 | +#### Input |
| 99 | +
|
| 100 | +Enter one or more of the following to search for a Maia Plan project: |
| 101 | +
|
| 102 | +* `projectID` – The project's UUID. |
| 103 | +* `query` – A search string. The `query` field must not exceed 500 characters, and is best for a title match. |
| 104 | +* `keywords` – Specific search keywords. The search terms you enter in the `keywords` field are used to match across title, text, epics, and stories. |
| 105 | + |
| 106 | +You can also filter by `planRole` and `updatedAfter` date. |
| 107 | +The `planRole` can be `Owner` or `Viewer`. |
| 108 | + |
| 109 | +Keep in mind the following: |
| 110 | + |
| 111 | +* All fields are optional, but you must provide at least one: `projectId`, `query`, or `keywords`. |
| 112 | +* Search fields are not case sensitive. |
| 113 | +* Partial matches are accepted. |
| 114 | + |
| 115 | +#### Output |
| 116 | + |
| 117 | +The search returns a JSON list of plans, sorted by `score` in descending order. |
| 118 | +If validation fails, a plain string is returned, not a JSON object. |
| 119 | + |
| 120 | +### Get_Plan_Content {#get-content} |
| 121 | + |
| 122 | +This tool is used by AI agents to retrieve the full content of a specific Maia Plan project by UUID. The tool returns a structured JSON that includes the project scope and/or the solution (epics, stories, acceptance criteria). |
| 123 | + |
| 124 | +Keep in mind the following: |
| 125 | + |
| 126 | +* The tool only returns plans that the authenticated user can access. |
| 127 | +* The tool only returns current plan versions. |
| 128 | + |
| 129 | +#### Input |
| 130 | + |
| 131 | +Enter the following to retrieve plan content: |
| 132 | + |
| 133 | +* `planUUID` – The plan's UUID, retrieved using the `Get_Project_Plan` tool. |
| 134 | +* `sections` – The sections that you want to retrieve. You must specify at least one of the following sections. Otherwise, no results are returned. |
| 135 | +
|
| 136 | + * `scope` – Retrieves the project overview, the goals, the requirements and the success criteria. |
| 137 | + * `solution` – Retrieves the epics, the stories and their Marketplace recommendations. |
| 138 | + * `both` – Retrieves the complete plan. |
| 139 | +
|
| 140 | +#### Output |
| 141 | +
|
| 142 | +The tool returns the selected sections as a JSON string. |
| 143 | +
|
| 144 | +## How It Works {#how-it-works} |
| 145 | +
|
| 146 | +The following steps describe how the Maia Plan MCP Server processes requests: |
| 147 | +
|
| 148 | +1. An MCP client calls one of the available tools and includes an `Authorization` header with a bearer token, which is your personal access token. |
| 149 | +2. The server validates the token and identifies you. |
| 150 | +3. The server filters plans based on your access permissions. |
| 151 | +4. If the AI agent called the `Get_Project_Plan` tool, the server returns a list of plan UUIDs for projects you can access. |
| 152 | +5. If the AI agent called the `Get_Plan_Content` tool, the server validates that you have access to the specified project and returns the requested content. |
| 153 | +
|
| 154 | +## Security and Access Control {#security} |
| 155 | +
|
| 156 | +The Maia Plan MCP Server enforces the following security measures: |
| 157 | +
|
| 158 | +* Authentication required – All requests must include a valid bearer token (personal access token) in the authorization header. |
| 159 | +* Project-level authorization – Access is checked for each project. You can only retrieve data for projects you have permission to view in Mendix Portal. |
| 160 | +* Read-only access – The MCP server does not support create, update, or delete operations. All tools provide read-only access to plan data. |
| 161 | +* Unauthorized requests denied – If you attempt to access a project you do not have permission to view, the server returns an error. |
0 commit comments