---
title: MCP Endpoint – Connect External AI Tools to Repository, C4, and BizTalk
description: Connect external AI tools to Nodinite through the MCP Endpoint. Register nodinite-mcp in your MCP client, then use Repository Model, Architecture Diagrams, Diagram Sets, Mermaid C4, and BizTalk Application capabilities from VS Code, Claude Desktop, Cline, and similar tools. BizTalk-specific tools also require EnableAiForBizTalk.
---

# :fa-plug: MCP Endpoint — Connect External AI Tools

:new7.4.0:

External MCP clients such as **VS Code**, **Claude Desktop**, **Cline**, and custom tools use the :Nodinite: **MCP Endpoint** (Model Context Protocol) to query your environment outside the :Nodinite: [Web Client][]. The external MCP setup is required for every external client, regardless of whether you want general [Repository Model][] discovery, [Architecture Diagrams][] and [Diagram Sets][], **Mermaid C4** output, or [BizTalk Application][BizTalk Applications] analysis.

* :fa-check: Use the same external MCP setup for Repository, C4, and BizTalk questions  
* :fa-check: Connect tools such as VS Code, Claude Desktop, and Cline to one :Nodinite: environment  
* :fa-check: Explore [Custom Metadata][], relationships, **Architecture Diagrams**, and BizTalk content from one endpoint  
* :fa-check: Keep the Web Client AI experience separate from external MCP client registration  

>[!IMPORTANT]
>The external MCP setup is separate from the [AI System Parameter][AI System Parameter]. `EnableMcpChat` and `EnableDiagramAiAssistance` control in-product AI surfaces in the :Nodinite: [Web Client][]. They do **not** register an external MCP client. For BizTalk-specific MCP tools, `EnableAiForBizTalk` must also be enabled in the environment.

---

## When External MCP Setup Is Required

| Scenario | Do you need external MCP setup? | Why |
| --- | --- | --- |
| AI Assistant in the :Nodinite: [Web Client][] | No | This is the in-product chat experience controlled by [AI System Parameter][] and [AI Assistant][]. |
| AI Assistance tab in [Diagram Assistance][] | No | This is the in-product diagram AI experience controlled by `EnableDiagramAiAssistance`. |
| VS Code, Claude Desktop, Cline, or a custom MCP client | Yes | Every external client needs a server entry: the IIS-hosted endpoint (OAuth), or the NuGet package over stdio (Windows authentication). |

This is the most important rule to remember: if the user works outside the :Nodinite: [Web Client][], the external MCP setup is always required.

---

## What You Can Use It For

Once connected, an external MCP client can be used across these major areas:

| Area | What users usually ask | Typical outcome |
| --- | --- | --- |
| :fa-sitemap: [Repository Model][] | *Which integrations are tagged as Critical?* | Entity details, relationships, [Domains][], and [Custom Metadata][] |
| :fa-layer-group: [Architecture Diagrams][] | *Which systems in this Diagram Set still lack an L2 Container view?* | Diagrams, [Diagram Sets][], Coverage, and review questions |
| :fa-server: [BizTalk][BizTalk and MCP Endpoint] | *Show me the BizTalk Application that owns these send ports* | [BizTalk Application][BizTalk Applications] discovery, artifact inspection, runtime analysis, and architecture generation |

The same client setup supports all three areas. You do not need one MCP configuration for Repository questions and another for BizTalk or C4 questions.

For BizTalk-specific MCP capabilities, the external client setup is only one part of the story. The environment must also have `EnableAiForBizTalk` enabled, and the caller must have the required administrator-level access.

---

## :fa-diagram-project: How External MCP Access Works

<div class="mermaid">
graph LR
    Client["fa:fa-laptop-code External AI client"] --> Config["fa:fa-file-code mcp.json or equivalent"]
    Config -->|"http, OAuth"| Iis["fa:fa-globe MCP Endpoint in IIS<br/>/mcp"]
    Config -->|"stdio, Windows authentication"| Server["fa:fa-cube Nodinite.Core.McpServer<br/>NuGet package"]
    Iis --> Repo
    Iis --> C4
    Iis --> BizTalk
    Server --> Repo["fa:fa-sitemap Repository Model"]
    Server --> C4["fa:fa-diagram-project Architecture Diagrams<br/>Diagram Sets and Mermaid C4"]
    Server --> BizTalk["fa:fa-server BizTalk Application<br/>artifacts and runtime analysis"]
</div>

*Diagram: An external AI client reads its MCP configuration and reaches the same server either over HTTP, through the IIS-hosted endpoint, or over stdio, through the NuGet package it starts itself. Both offer the same tools. The client can then ask questions across the Repository Model, Architecture Diagrams, Diagram Sets, Mermaid C4 output, and BizTalk Application analysis.*

---

## Setup Summary

The exact syntax varies by client, but the setup model stays the same:

| Step | What you configure | Why it matters |
| --- | --- | --- |
| 1 | Choose the way in: the IIS-hosted endpoint when the environment uses OAuth, or the NuGet package when it uses Windows authentication | VS Code can't sign in to the IIS-hosted endpoint with Windows authentication |
| 2 | IIS-hosted endpoint: an `http` entry with the endpoint's `/mcp` URL in `mcp.json` or the equivalent client file | The client signs in through OAuth; no connection string or secrets |
| 2 | NuGet package: a `stdio` entry that starts `Nodinite.Core.McpServer` through `dnx` with `--stdio`, and a plain-text `ConnectionStrings__NodiniteConfig` | The package runs as the user and reaches `Nodinite_Config` directly; it needs the .NET 10 SDK |
| 3 | Reload the client and validate with a simple question | Confirm connectivity before relying on more advanced queries |

For a detailed setup walkthrough, see [Set up AI Assistant and MCP Endpoint][].

For full remote HTTP exposure, OAuth discovery handshake behavior, Entra ID scope setup, and external connectivity troubleshooting, use [MCP Endpoint External Access][].

---

## :fa-list-check: Choose Your Tools {#choose-tools}

The MCP Endpoint lists all its tools, about 180 in this release, in 9 groups: Health, [Monitor Agents][], [Monitor Views][], [Integrations][], [Log Views][], Repository, Documentation, [C4 Diagrams][Architecture Diagrams], and BizTalk. The number grows with nearly every release. The [AI Assistant][] sends only the tools you tick, and at most 128 per request, because the model provider refuses more. So tick the groups you need, stay under the limit, and untick a group to make room for another.

![Choosing tools in the AI Assistant: 108 of 180 selected by default, ticking C4 Diagrams gives 146 selected in red over the limit of 128, unticking Documentation (15 tools) gives 131, still over, unticking Log Views (6 tools) gives 125 of 180 selected, animated walkthrough (7.12)][1]  
*Animated walkthrough: making room for the C4 Diagrams group in the [AI Assistant][] by unticking two default groups. The counts are this user's selection in this build.*  

The walkthrough shows the steps:

1. Open the AI Assistant.
2. Click **Tools** (the wrench) in its header. The count line shows how many of the listed tools are selected, and the status line repeats it.
3. Seven groups are ticked by default: Health, Monitor Agents, Monitor Views, Integrations, Log Views, Repository, and Documentation.
4. Tick **C4 Diagrams**.
5. The count line turns red: *… selected — the provider accepts at most 128*. Untick **Documentation**.
6. Still over the limit: untick **Log Views**.
7. The count is back under 128: ready to chat.

* **Groups and single tools**: every group has a check box, and every tool has its own. A group box shows when only part of the group is ticked, and **Search tools…** finds a tool by name. There is no "select all": tick groups, or a few BizTalk or C4 tools instead of the whole group.
* **Opt-in groups**: C4 Diagrams and BizTalk start unticked. Either one on top of the default goes over 128, so untick other tools first. Ticking every tool is always refused.
* **Your choice is kept per user**: the browser stores the selection for each signed-in user, so it can differ between users and browsers. The default applies until you change something; clearing the browser data brings it back.
* **Prompts**: starting a prompt adds the tools it needs to your selection before the limit is checked.
* **The limit is a setting**: `Mcp:MaxToolsPerRequest` in the Web Client settings, default 128. The MCP Endpoint itself has no limit.
* **In VS Code**: enable at most 128 tools in its tool picker (Chat → **Configure Tools**).

The BizTalk tools are always listed, but they refuse to run unless **BizTalk AI** is ticked on the **AI Settings** page, at least one active BizTalk environment exists, and you are a :Nodinite: **Administrator**. `get_biz_talk_capability_status` always runs and tells you which of these is missing.

## :fa-book: MCP Tool Reference

Need the complete tool list for `Nodinite.Core.McpServer`? The [MCP Tool Reference][] has:

* Every tool, one page per group
* The OAuth scope every tool needs, and how Windows and stdio differ
* The paging and input rules, with their exceptions
* Practical guidance for `list_*`, `search_*`, `get_*`, `explain_*`, `create_*`, `update_*`, and `delete_*`

[Open MCP Tool Reference →][MCP Tool Reference]

---

## Good First Questions

Start with simple, observable questions before you move to larger workflows:

* *Show me all Applications in Production*
* *Which integrations are tagged as Gold?*
* *Which systems in the Order-to-Cash Diagram Set still lack an L2 Container diagram?*
* *List the send ports and receive locations in the OrderProcessing BizTalk Application*
* *Generate Mermaid C4 for the BizTalk application that handles invoices*

These quick checks tell you whether the client can reach the right environment and whether the expected data is available.

---

## Security and Expectations

Plan access with care: apart from the BizTalk tools, which need an Administrator, the MCP Endpoint doesn't check :Nodinite: [Roles][].

* In **OAuth** mode, the OAuth scopes granted to the user decide which tools it can call; write tools need write scopes, and delete tools need `mcp:repository.delete` or `mcp:c4diagrams.modify`. An external client that calls a tool without the scope gets HTTP 403 `insufficient_scope` and can ask the user to grant it (step-up).
* In **Windows** mode, only the Windows users listed in `AllowedUsers` can call the endpoint, and each of them can call every tool, write and delete tools included. An empty list denies everyone.
* The **NuGet package** (stdio) has no authorization: it runs with the SQL rights of its connection string, and writes are recorded as `mcp-server`.
* Most tools read, but there are also write and delete tools, for [Articles][], [Snippets][], [Templates][], [Document Profiles][], and C4 Diagrams; Soft Delete needs `mcp:repository.delete`, and the C4 deletes are permanent.
* Do not commit real secrets in `mcp.json` or the equivalent client configuration.
* Review the data-handling model of the external AI client you choose, because that client decides where prompts and responses are processed.

>[!TIP]
>AI answers can vary between runs, because the model decides which tools to call. When you need the same result every time, for example in a script or CI/CD pipeline, call the deterministic :Nodinite: [Web API][Manage the Web API] instead. See [Web API or MCP Endpoint?][Web API or MCP Endpoint].

---

## :fa-circle-question: Troubleshooting Checks

### The client loads but no :Nodinite: tools appear

Verify that `nodinite-mcp` is registered inside the client's MCP configuration and reload the client after saving the file.

### Repository questions work, but BizTalk or Architecture Diagram questions do not

Confirm that the environment actually contains the expected **Architecture Diagrams**, **Diagram Sets**, or **BizTalk Application** data and that the connected user can access it. For BizTalk-specific tools, also verify that `EnableAiForBizTalk` is enabled; otherwise the BizTalk capability remains unavailable even though the client itself is connected correctly.

### The client starts but cannot read data

Review the values used for `ConnectionStrings__NodiniteConfig`, the package source, and any client-specific startup requirements.

---

## :fa-hand-point-right: Next Steps

* :fa-list-check: [Set up AI Assistant and MCP Endpoint][]  
* :fa-network-wired: [MCP Endpoint External Access][]  
* :fa-book: [MCP Tool Reference][]  
* :fa-server: [BizTalk and MCP Endpoint][]  
* :fa-robot: [AI Assistant][]  

## :fa-link-horizontal: Related Topics

* :fa-key: [AI System Parameter][]  
* :fa-robot: [AI Assistant][]  
* :fa-network-wired: [MCP Endpoint External Access][]  
* :fa-diagram-project: [Diagram Assistance][]  
* :fa-layer-group: [Architecture Diagrams][]  
* :fa-database: [Repository Model][]  
* :fa-server: [BizTalk and MCP Endpoint][]  
* :fa-globe: [AI Overview][]  
* :fa-cloud-sun: [Manage the Web API][]  
* :fa-box-full: [MCP Endpoint in Core Services – hosting, ports, and Portal settings][MCP Endpoint Hosting]  
* :fa-rocket: [Install MCP Endpoint][]  

[1]:{ndm}/Documentation%20Pictures/IM/AI/AIAssistant_ChooseTools.gif

[AI Assistant]:{ndr}/AI/AI%20Assistant.md
[AI Overview]:{ndr}/AI/Overview.md
[AI System Parameter]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/AI.md
[Architecture Diagrams]:{ndr}/Repository%20Model/C4%20Diagrams/Overview.md
[Articles]:{ndr}/Repository%20Model/Knowledge%20base%20Articles/Overview.md
[BizTalk and MCP Endpoint]:{ndr}/AI/BizTalk%20and%20MCP%20Endpoint.md
[BizTalk Applications]:{ndr}/Logging%20and%20Monitoring/Microsoft%20BizTalk%20Server%20-%20Monitoring/Features/Application/Overview.md
[Custom Metadata]:{ndr}/Repository%20Model/Custom%20Metadata/Overview.md
[Diagram Assistance]:{ndr}/Repository%20Model/C4%20Diagrams/Features/Diagram%20Assistance.md
[Diagram Sets]:{ndr}/Repository%20Model/C4%20Diagrams/Features/Diagram%20Set%20Fundamentals.md
[Document Profiles]:{ndr}/Repository%20Model/Knowledge%20base%20Articles/Features/Document%20Profiles.md
[Domains]:{ndr}/Repository%20Model/Domains/Overview.md
[Install MCP Endpoint]:{ndr}/Core%20Services/MCP%20Endpoint/Getting%20started/2.%20Install.md
[Integrations]:{ndr}/Repository%20Model/Integrations/Overview.md
[Log Views]:{ndr}/Administration/1.%20Log%20Management/1.%20Log%20Views/Features/What%20is%20a%20Log%20View.md
[Manage the Web API]:{ndr}/Core%20Services/Web%20API/Features/Managing%20the%20Web%20API.md
[MCP Endpoint External Access]:{ndr}/AI/MCP%20Endpoint%20External%20Access.md
[MCP Endpoint Hosting]:{ndr}/Core%20Services/MCP%20Endpoint/Overview.md
[MCP Tool Reference]:{ndr}/AI/MCP%20Tool%20Reference.md
[Monitor Agents]:{ndr}/Administration/2.%20Monitor%20Management/2.%20Monitor%20Agents/Features/What%20is%20a%20Monitor%20Agent.md
[Monitor Views]:{ndr}/Administration/2.%20Monitor%20Management/1.%20Monitor%20Views/Features/What%20is%20a%20Monitor%20View.md
[Repository Model]:{ndr}/Repository%20Model/Overview.md
[Roles]:{ndr}/Administration/3.%20Access%20Management/1.%20Roles/Features/What%20is%20a%20Role.md
[Set up AI Assistant and MCP Endpoint]:{ndr}/AI/Getting%20Started.md
[Snippets]:{ndr}/Repository%20Model/Knowledge%20base%20Articles/Features/Snippets.md
[Templates]:{ndr}/Repository%20Model/Knowledge%20base%20Articles/Features/Templates.md
[Web API or MCP Endpoint]:{ndr}/Core%20Services/Web%20API/Features/Managing%20the%20Web%20API.md#web-api-or-mcp-endpoint
[Web Client]:{ndr}/Getting%20Started/Overview.md