1. Registry
  2. Packages
  3. Mongodbatlas Provider
  4. API Docs
  5. getProjectMcpConfig
Viewing docs for MongoDB Atlas v4.16.0
published on Thursday, Sep 17, 2026 by Pulumi
mongodbatlas logo mongodbatlas logo
Viewing docs for MongoDB Atlas v4.16.0
published on Thursday, Sep 17, 2026 by Pulumi

    mongodbatlas.ProjectMcpConfig describes a Project Remote MCP Configuration.

    Example Usage

    S

    import * as pulumi from "@pulumi/pulumi";
    import * as mongodbatlas from "@pulumi/mongodbatlas";
    
    const _this = mongodbatlas.getProjectMcpConfig({
        projectId: projectId,
        mcpConfigId: thisMongodbatlasProjectMcpConfig.mcpConfigId,
    });
    export const mcpConfigName = _this.then(_this => _this.mcpConfigName);
    
    import pulumi
    import pulumi_mongodbatlas as mongodbatlas
    
    this = mongodbatlas.get_project_mcp_config(project_id=project_id,
        mcp_config_id=this_mongodbatlas_project_mcp_config["mcpConfigId"])
    pulumi.export("mcpConfigName", this.mcp_config_name)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-mongodbatlas/sdk/v4/go/mongodbatlas"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		this, err := mongodbatlas.GetProjectMcpConfig(ctx, &mongodbatlas.LookupProjectMcpConfigArgs{
    			ProjectId:   projectId,
    			McpConfigId: thisMongodbatlasProjectMcpConfig.McpConfigId,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("mcpConfigName", this.McpConfigName)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Mongodbatlas = Pulumi.Mongodbatlas;
    
    return await Deployment.RunAsync(() => 
    {
        var @this = Mongodbatlas.GetProjectMcpConfig.Invoke(new()
        {
            ProjectId = projectId,
            McpConfigId = thisMongodbatlasProjectMcpConfig.McpConfigId,
        });
    
        return new Dictionary<string, object?>
        {
            ["mcpConfigName"] = @this.Apply(@this => @this.Apply(getProjectMcpConfigResult => getProjectMcpConfigResult.McpConfigName)),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.mongodbatlas.MongodbatlasFunctions;
    import com.pulumi.mongodbatlas.inputs.GetProjectMcpConfigArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var this = MongodbatlasFunctions.getProjectMcpConfig(GetProjectMcpConfigArgs.builder()
                .projectId(projectId)
                .mcpConfigId(thisMongodbatlasProjectMcpConfig.mcpConfigId())
                .build());
    
            ctx.export("mcpConfigName", this_.mcpConfigName());
        }
    }
    
    variables:
      this:
        fn::invoke:
          function: mongodbatlas:getProjectMcpConfig
          arguments:
            projectId: ${projectId}
            mcpConfigId: ${thisMongodbatlasProjectMcpConfig.mcpConfigId}
    outputs:
      mcpConfigName: ${this.mcpConfigName}
    
    pulumi {
      required_providers {
        mongodbatlas = {
          source = "pulumi/mongodbatlas"
        }
      }
    }
    
    data "mongodbatlas_getprojectmcpconfig" "this" {
      project_id    = projectId
      mcp_config_id = thisMongodbatlasProjectMcpConfig.mcpConfigId
    }
    
    output "mcpConfigName" {
      value = data.mongodbatlas_getprojectmcpconfig.this.mcp_config_name
    }
    

    Using getProjectMcpConfig

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getProjectMcpConfig(args: GetProjectMcpConfigArgs, opts?: InvokeOptions): Promise<GetProjectMcpConfigResult>
    function getProjectMcpConfigOutput(args: GetProjectMcpConfigOutputArgs, opts?: InvokeOutputOptions): Output<GetProjectMcpConfigResult>
    def get_project_mcp_config(mcp_config_id: Optional[str] = None,
                               project_id: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetProjectMcpConfigResult
    def get_project_mcp_config_output(mcp_config_id: pulumi.Input[Optional[str]] = None,
                               project_id: pulumi.Input[Optional[str]] = None,
                               opts: Optional[InvokeOutputOptions] = None) -> Output[GetProjectMcpConfigResult]
    func LookupProjectMcpConfig(ctx *Context, args *LookupProjectMcpConfigArgs, opts ...InvokeOption) (*LookupProjectMcpConfigResult, error)
    func LookupProjectMcpConfigOutput(ctx *Context, args *LookupProjectMcpConfigOutputArgs, opts ...InvokeOption) LookupProjectMcpConfigResultOutput

    > Note: This function is named LookupProjectMcpConfig in the Go SDK.

    public static class GetProjectMcpConfig 
    {
        public static Task<GetProjectMcpConfigResult> InvokeAsync(GetProjectMcpConfigArgs args, InvokeOptions? opts = null)
        public static Output<GetProjectMcpConfigResult> Invoke(GetProjectMcpConfigInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetProjectMcpConfigResult> Invoke(GetProjectMcpConfigInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetProjectMcpConfigResult> getProjectMcpConfig(GetProjectMcpConfigArgs args, InvokeOptions options)
    public static Output<GetProjectMcpConfigResult> getProjectMcpConfig(GetProjectMcpConfigArgs args, InvokeOptions options)
    public static Output<GetProjectMcpConfigResult> getProjectMcpConfig(GetProjectMcpConfigArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: mongodbatlas:index/getProjectMcpConfig:getProjectMcpConfig
      arguments:
        # arguments dictionary
    data "mongodbatlas_get_project_mcp_config" "name" {
        # arguments
    }

    The following arguments are supported:

    McpConfigId string
    Unique identifier of the MCP configuration.
    ProjectId string
    Unique 24-hexadecimal digit string that identifies your project, also known as groupId in the official documentation.
    McpConfigId string
    Unique identifier of the MCP configuration.
    ProjectId string
    Unique 24-hexadecimal digit string that identifies your project, also known as groupId in the official documentation.
    mcp_config_id string
    Unique identifier of the MCP configuration.
    project_id string
    Unique 24-hexadecimal digit string that identifies your project, also known as groupId in the official documentation.
    mcpConfigId String
    Unique identifier of the MCP configuration.
    projectId String
    Unique 24-hexadecimal digit string that identifies your project, also known as groupId in the official documentation.
    mcpConfigId string
    Unique identifier of the MCP configuration.
    projectId string
    Unique 24-hexadecimal digit string that identifies your project, also known as groupId in the official documentation.
    mcp_config_id str
    Unique identifier of the MCP configuration.
    project_id str
    Unique 24-hexadecimal digit string that identifies your project, also known as groupId in the official documentation.
    mcpConfigId String
    Unique identifier of the MCP configuration.
    projectId String
    Unique 24-hexadecimal digit string that identifies your project, also known as groupId in the official documentation.

    getProjectMcpConfig Result

    The following output properties are available:

    ClientId string
    Unique identifier for the Service Account client associated with this MCP configuration. Use this Service Account to connect to the Atlas Remote MCP.
    EgressClientId string
    Unique identifier for the egress Service Account client associated with this MCP configuration. This Service Account is managed by MongoDB Atlas.
    IpAccessLists List<GetProjectMcpConfigIpAccessList>
    List of IP access list entries that define allowed source addresses for this MCP configuration.
    McpConfigId string
    Unique identifier of the MCP configuration.
    McpConfigName string
    Human-readable name that identifies this MCP configuration.
    ProjectId string
    Unique 24-hexadecimal digit string that identifies your project, also known as groupId in the official documentation.
    Roles List<string>
    List of project roles associated with this MCP configuration.
    ClientId string
    Unique identifier for the Service Account client associated with this MCP configuration. Use this Service Account to connect to the Atlas Remote MCP.
    EgressClientId string
    Unique identifier for the egress Service Account client associated with this MCP configuration. This Service Account is managed by MongoDB Atlas.
    IpAccessLists []GetProjectMcpConfigIpAccessList
    List of IP access list entries that define allowed source addresses for this MCP configuration.
    McpConfigId string
    Unique identifier of the MCP configuration.
    McpConfigName string
    Human-readable name that identifies this MCP configuration.
    ProjectId string
    Unique 24-hexadecimal digit string that identifies your project, also known as groupId in the official documentation.
    Roles []string
    List of project roles associated with this MCP configuration.
    client_id string
    Unique identifier for the Service Account client associated with this MCP configuration. Use this Service Account to connect to the Atlas Remote MCP.
    egress_client_id string
    Unique identifier for the egress Service Account client associated with this MCP configuration. This Service Account is managed by MongoDB Atlas.
    ip_access_lists list(object)
    List of IP access list entries that define allowed source addresses for this MCP configuration.
    mcp_config_id string
    Unique identifier of the MCP configuration.
    mcp_config_name string
    Human-readable name that identifies this MCP configuration.
    project_id string
    Unique 24-hexadecimal digit string that identifies your project, also known as groupId in the official documentation.
    roles list(string)
    List of project roles associated with this MCP configuration.
    clientId String
    Unique identifier for the Service Account client associated with this MCP configuration. Use this Service Account to connect to the Atlas Remote MCP.
    egressClientId String
    Unique identifier for the egress Service Account client associated with this MCP configuration. This Service Account is managed by MongoDB Atlas.
    ipAccessLists List<GetProjectMcpConfigIpAccessList>
    List of IP access list entries that define allowed source addresses for this MCP configuration.
    mcpConfigId String
    Unique identifier of the MCP configuration.
    mcpConfigName String
    Human-readable name that identifies this MCP configuration.
    projectId String
    Unique 24-hexadecimal digit string that identifies your project, also known as groupId in the official documentation.
    roles List<String>
    List of project roles associated with this MCP configuration.
    clientId string
    Unique identifier for the Service Account client associated with this MCP configuration. Use this Service Account to connect to the Atlas Remote MCP.
    egressClientId string
    Unique identifier for the egress Service Account client associated with this MCP configuration. This Service Account is managed by MongoDB Atlas.
    ipAccessLists GetProjectMcpConfigIpAccessList[]
    List of IP access list entries that define allowed source addresses for this MCP configuration.
    mcpConfigId string
    Unique identifier of the MCP configuration.
    mcpConfigName string
    Human-readable name that identifies this MCP configuration.
    projectId string
    Unique 24-hexadecimal digit string that identifies your project, also known as groupId in the official documentation.
    roles string[]
    List of project roles associated with this MCP configuration.
    client_id str
    Unique identifier for the Service Account client associated with this MCP configuration. Use this Service Account to connect to the Atlas Remote MCP.
    egress_client_id str
    Unique identifier for the egress Service Account client associated with this MCP configuration. This Service Account is managed by MongoDB Atlas.
    ip_access_lists Sequence[GetProjectMcpConfigIpAccessList]
    List of IP access list entries that define allowed source addresses for this MCP configuration.
    mcp_config_id str
    Unique identifier of the MCP configuration.
    mcp_config_name str
    Human-readable name that identifies this MCP configuration.
    project_id str
    Unique 24-hexadecimal digit string that identifies your project, also known as groupId in the official documentation.
    roles Sequence[str]
    List of project roles associated with this MCP configuration.
    clientId String
    Unique identifier for the Service Account client associated with this MCP configuration. Use this Service Account to connect to the Atlas Remote MCP.
    egressClientId String
    Unique identifier for the egress Service Account client associated with this MCP configuration. This Service Account is managed by MongoDB Atlas.
    ipAccessLists List<Property Map>
    List of IP access list entries that define allowed source addresses for this MCP configuration.
    mcpConfigId String
    Unique identifier of the MCP configuration.
    mcpConfigName String
    Human-readable name that identifies this MCP configuration.
    projectId String
    Unique 24-hexadecimal digit string that identifies your project, also known as groupId in the official documentation.
    roles List<String>
    List of project roles associated with this MCP configuration.

    Supporting Types

    GetProjectMcpConfigIpAccessList

    CidrBlock string
    Range of network addresses in the access list for the Service Account. This parameter requires the range to be expressed in Classless Inter-Domain Routing (CIDR) notation of Internet Protocol version 4 or version 6 addresses. You can set a value for this parameter or ipAddress, but not for both in the same request.
    CreatedAt string
    Date MongoDB Cloud added the entry was added to the Access List. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
    IpAddress string
    Network address in the access list for the Service Account. This parameter requires the address to be expressed as one Internet Protocol version 4 or version 6 address. You can set a value for this parameter or cidrBlock, but not for both in the same request.
    LastUsedAddress string
    Network address that issued the most recent request to the API. This parameter requires the address to be expressed as one Internet Protocol version 4 or version 6 address. The resource returns this parameter after this IP address makes at least one request.
    LastUsedAt string
    Date when MongoDB Cloud received the most recent request that originated from this Internet Protocol version 4 or version 6 address. The resource returns this parameter when at least one request originates from this IP address. MongoDB Cloud updates this parameter each time a client accesses the permitted resource, with a delay of up to 5 minutes. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
    RequestCount int
    The number of requests that has originated from this network address.
    CidrBlock string
    Range of network addresses in the access list for the Service Account. This parameter requires the range to be expressed in Classless Inter-Domain Routing (CIDR) notation of Internet Protocol version 4 or version 6 addresses. You can set a value for this parameter or ipAddress, but not for both in the same request.
    CreatedAt string
    Date MongoDB Cloud added the entry was added to the Access List. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
    IpAddress string
    Network address in the access list for the Service Account. This parameter requires the address to be expressed as one Internet Protocol version 4 or version 6 address. You can set a value for this parameter or cidrBlock, but not for both in the same request.
    LastUsedAddress string
    Network address that issued the most recent request to the API. This parameter requires the address to be expressed as one Internet Protocol version 4 or version 6 address. The resource returns this parameter after this IP address makes at least one request.
    LastUsedAt string
    Date when MongoDB Cloud received the most recent request that originated from this Internet Protocol version 4 or version 6 address. The resource returns this parameter when at least one request originates from this IP address. MongoDB Cloud updates this parameter each time a client accesses the permitted resource, with a delay of up to 5 minutes. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
    RequestCount int
    The number of requests that has originated from this network address.
    cidr_block string
    Range of network addresses in the access list for the Service Account. This parameter requires the range to be expressed in Classless Inter-Domain Routing (CIDR) notation of Internet Protocol version 4 or version 6 addresses. You can set a value for this parameter or ipAddress, but not for both in the same request.
    created_at string
    Date MongoDB Cloud added the entry was added to the Access List. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
    ip_address string
    Network address in the access list for the Service Account. This parameter requires the address to be expressed as one Internet Protocol version 4 or version 6 address. You can set a value for this parameter or cidrBlock, but not for both in the same request.
    last_used_address string
    Network address that issued the most recent request to the API. This parameter requires the address to be expressed as one Internet Protocol version 4 or version 6 address. The resource returns this parameter after this IP address makes at least one request.
    last_used_at string
    Date when MongoDB Cloud received the most recent request that originated from this Internet Protocol version 4 or version 6 address. The resource returns this parameter when at least one request originates from this IP address. MongoDB Cloud updates this parameter each time a client accesses the permitted resource, with a delay of up to 5 minutes. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
    request_count number
    The number of requests that has originated from this network address.
    cidrBlock String
    Range of network addresses in the access list for the Service Account. This parameter requires the range to be expressed in Classless Inter-Domain Routing (CIDR) notation of Internet Protocol version 4 or version 6 addresses. You can set a value for this parameter or ipAddress, but not for both in the same request.
    createdAt String
    Date MongoDB Cloud added the entry was added to the Access List. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
    ipAddress String
    Network address in the access list for the Service Account. This parameter requires the address to be expressed as one Internet Protocol version 4 or version 6 address. You can set a value for this parameter or cidrBlock, but not for both in the same request.
    lastUsedAddress String
    Network address that issued the most recent request to the API. This parameter requires the address to be expressed as one Internet Protocol version 4 or version 6 address. The resource returns this parameter after this IP address makes at least one request.
    lastUsedAt String
    Date when MongoDB Cloud received the most recent request that originated from this Internet Protocol version 4 or version 6 address. The resource returns this parameter when at least one request originates from this IP address. MongoDB Cloud updates this parameter each time a client accesses the permitted resource, with a delay of up to 5 minutes. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
    requestCount Integer
    The number of requests that has originated from this network address.
    cidrBlock string
    Range of network addresses in the access list for the Service Account. This parameter requires the range to be expressed in Classless Inter-Domain Routing (CIDR) notation of Internet Protocol version 4 or version 6 addresses. You can set a value for this parameter or ipAddress, but not for both in the same request.
    createdAt string
    Date MongoDB Cloud added the entry was added to the Access List. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
    ipAddress string
    Network address in the access list for the Service Account. This parameter requires the address to be expressed as one Internet Protocol version 4 or version 6 address. You can set a value for this parameter or cidrBlock, but not for both in the same request.
    lastUsedAddress string
    Network address that issued the most recent request to the API. This parameter requires the address to be expressed as one Internet Protocol version 4 or version 6 address. The resource returns this parameter after this IP address makes at least one request.
    lastUsedAt string
    Date when MongoDB Cloud received the most recent request that originated from this Internet Protocol version 4 or version 6 address. The resource returns this parameter when at least one request originates from this IP address. MongoDB Cloud updates this parameter each time a client accesses the permitted resource, with a delay of up to 5 minutes. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
    requestCount number
    The number of requests that has originated from this network address.
    cidr_block str
    Range of network addresses in the access list for the Service Account. This parameter requires the range to be expressed in Classless Inter-Domain Routing (CIDR) notation of Internet Protocol version 4 or version 6 addresses. You can set a value for this parameter or ipAddress, but not for both in the same request.
    created_at str
    Date MongoDB Cloud added the entry was added to the Access List. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
    ip_address str
    Network address in the access list for the Service Account. This parameter requires the address to be expressed as one Internet Protocol version 4 or version 6 address. You can set a value for this parameter or cidrBlock, but not for both in the same request.
    last_used_address str
    Network address that issued the most recent request to the API. This parameter requires the address to be expressed as one Internet Protocol version 4 or version 6 address. The resource returns this parameter after this IP address makes at least one request.
    last_used_at str
    Date when MongoDB Cloud received the most recent request that originated from this Internet Protocol version 4 or version 6 address. The resource returns this parameter when at least one request originates from this IP address. MongoDB Cloud updates this parameter each time a client accesses the permitted resource, with a delay of up to 5 minutes. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
    request_count int
    The number of requests that has originated from this network address.
    cidrBlock String
    Range of network addresses in the access list for the Service Account. This parameter requires the range to be expressed in Classless Inter-Domain Routing (CIDR) notation of Internet Protocol version 4 or version 6 addresses. You can set a value for this parameter or ipAddress, but not for both in the same request.
    createdAt String
    Date MongoDB Cloud added the entry was added to the Access List. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
    ipAddress String
    Network address in the access list for the Service Account. This parameter requires the address to be expressed as one Internet Protocol version 4 or version 6 address. You can set a value for this parameter or cidrBlock, but not for both in the same request.
    lastUsedAddress String
    Network address that issued the most recent request to the API. This parameter requires the address to be expressed as one Internet Protocol version 4 or version 6 address. The resource returns this parameter after this IP address makes at least one request.
    lastUsedAt String
    Date when MongoDB Cloud received the most recent request that originated from this Internet Protocol version 4 or version 6 address. The resource returns this parameter when at least one request originates from this IP address. MongoDB Cloud updates this parameter each time a client accesses the permitted resource, with a delay of up to 5 minutes. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
    requestCount Number
    The number of requests that has originated from this network address.

    Package Details

    Repository
    MongoDB Atlas pulumi/pulumi-mongodbatlas
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the mongodbatlas Terraform Provider.
    mongodbatlas logo mongodbatlas logo
    Viewing docs for MongoDB Atlas v4.16.0
    published on Thursday, Sep 17, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial