> For the complete documentation index, see [llms.txt](https://docs.codemash.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.codemash.io/sdks-and-cli/ai/integrations/save-mcp-integration.md).

# Save Mcp Integration

An **integration** connects an external provider to this module. Configure the provider and its secrets in the dashboard; the API lets you list, create or update, enable, disable, set a default, and test integrations. This method creates the mcp integration and returns its id. `POST /{version}/ai/integrations/mcp/`

{% hint style="info" %}
Full request/response reference will appear here once this method is added to the API spec.
{% endhint %}

This method is on the **Hub** surface (`norbix.hub.ai`) — call it from admin tooling or IaC.

{% hint style="info" %}
These examples assume the SDK is installed and your credentials are set as environment variables — each client reads them automatically, so the constructors below take no arguments. See [Install a Norbix SDK](/sdks-and-cli/install.md).
{% endhint %}

{% tabs %}
{% tab title="JavaScript / TypeScript" %}

```ts
import { Norbix } from '@norbix.ai/ts';
const norbix = new Norbix();

const result = await norbix.hub.ai.saveMcpIntegration();
```

{% endtab %}

{% tab title=".NET" %}

```csharp
using Norbix.Sdk;
using Norbix.Sdk.Types.Hub;

using var client = new NorbixClient();

var result = await client.Ai.SaveMcpIntegrationAsync(new SaveMcpIntegration());
```

{% endtab %}

{% tab title="Python" %}

```python
from norbix_python import NorbixHub

norbix = NorbixHub()

result = norbix.ai.save_mcp_integration()
```

{% endtab %}

{% tab title="Go" %}

```go
c, _ := norbix.New(norbix.Options{})
ctx := context.Background()

var result map[string]any
err := c.Hub.Ai.SaveMcpIntegration(ctx, nil, &result)
```

{% endtab %}

{% tab title="Dart / Flutter" %}

```dart
import 'package:norbix/norbix_hub.dart';

final hub = NorbixHub();

final result = await hub.aiIntegrations.saveMcpIntegration();
```

{% endtab %}

{% tab title="Swift" %}

```swift
import NorbixSwift

let client = Norbix()

let result = try await client.hub.ai.saveMcpIntegration([:])
```

{% endtab %}

{% tab title="Kotlin" %}

```kotlin
import dev.norbix.sdk.hub.NorbixHub

val hub = NorbixHub()

val result = hub.ai.saveMcpIntegration(emptyMap())
```

{% endtab %}

{% tab title="CLI" %}

```sh
norbix hub ai mcp integration save
```

{% endtab %}
{% endtabs %}

## In the dashboard

Manage this visually in Norbix Cloud — see [AI Integrations → Integrations](/ai/ai.md).

## API reference

Full request and response for this endpoint: [Save Mcp Integration](/api-reference/ai/integrations/save-mcp-integration.md).
