1. Registry
  2. Packages
  3. Snowflake Provider
  4. API Docs
  5. McpServer
Viewing docs for Snowflake v2.19.0
published on Friday, Jul 31, 2026 by Pulumi
snowflake logo
Viewing docs for Snowflake v2.19.0
published on Friday, Jul 31, 2026 by Pulumi

    Caution: Preview Feature This feature is considered a preview feature in the provider, regardless of the state of the resource in Snowflake. We do not guarantee its stability. It will be reworked and marked as a stable feature in future releases. Breaking changes are expected, even without bumping the major version. To use this feature, add the relevant feature name to previewFeaturesEnabled field in the provider configuration. Please always refer to the Getting Help section in our Github repo to best determine how to get help for your questions.

    Resource used to manage MCP server objects. For more information, check MCP server documentation.

    Create McpServer Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new McpServer(name: string, args: McpServerArgs, opts?: CustomResourceOptions);
    @overload
    def McpServer(resource_name: str,
                  args: McpServerArgs,
                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def McpServer(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  database: Optional[str] = None,
                  schema: Optional[str] = None,
                  specification: Optional[str] = None,
                  comment: Optional[str] = None,
                  name: Optional[str] = None)
    func NewMcpServer(ctx *Context, name string, args McpServerArgs, opts ...ResourceOption) (*McpServer, error)
    public McpServer(string name, McpServerArgs args, CustomResourceOptions? opts = null)
    public McpServer(String name, McpServerArgs args)
    public McpServer(String name, McpServerArgs args, CustomResourceOptions options)
    
    type: snowflake:McpServer
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "snowflake_mcp_server" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args McpServerArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args McpServerArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args McpServerArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args McpServerArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args McpServerArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var mcpServerResource = new Snowflake.McpServer("mcpServerResource", new()
    {
        Database = "string",
        Schema = "string",
        Specification = "string",
        Comment = "string",
        Name = "string",
    });
    
    example, err := snowflake.NewMcpServer(ctx, "mcpServerResource", &snowflake.McpServerArgs{
    	Database:      pulumi.String("string"),
    	Schema:        pulumi.String("string"),
    	Specification: pulumi.String("string"),
    	Comment:       pulumi.String("string"),
    	Name:          pulumi.String("string"),
    })
    
    resource "snowflake_mcp_server" "mcpServerResource" {
      lifecycle {
        create_before_destroy = true
      }
      database      = "string"
      schema        = "string"
      specification = "string"
      comment       = "string"
      name          = "string"
    }
    
    var mcpServerResource = new McpServer("mcpServerResource", McpServerArgs.builder()
        .database("string")
        .schema("string")
        .specification("string")
        .comment("string")
        .name("string")
        .build());
    
    mcp_server_resource = snowflake.McpServer("mcpServerResource",
        database="string",
        schema="string",
        specification="string",
        comment="string",
        name="string")
    
    const mcpServerResource = new snowflake.McpServer("mcpServerResource", {
        database: "string",
        schema: "string",
        specification: "string",
        comment: "string",
        name: "string",
    });
    
    type: snowflake:McpServer
    properties:
        comment: string
        database: string
        name: string
        schema: string
        specification: string
    

    McpServer Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The McpServer resource accepts the following input properties:

    Database string
    The database in which to create the MCP server. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    Schema string
    The schema in which to create the MCP server. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    Specification string
    Specifies a YAML object containing the MCP server tool definitions. The provider wraps it in $$ by default, so be aware of that while referencing the argument in the spec definition. Using $$ in this field is disallowed.
    Comment string
    Specifies a comment for the MCP server.
    Name string
    Specifies the identifier for the MCP server. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    Database string
    The database in which to create the MCP server. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    Schema string
    The schema in which to create the MCP server. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    Specification string
    Specifies a YAML object containing the MCP server tool definitions. The provider wraps it in $$ by default, so be aware of that while referencing the argument in the spec definition. Using $$ in this field is disallowed.
    Comment string
    Specifies a comment for the MCP server.
    Name string
    Specifies the identifier for the MCP server. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    database string
    The database in which to create the MCP server. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    schema string
    The schema in which to create the MCP server. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    specification string
    Specifies a YAML object containing the MCP server tool definitions. The provider wraps it in $$ by default, so be aware of that while referencing the argument in the spec definition. Using $$ in this field is disallowed.
    comment string
    Specifies a comment for the MCP server.
    name string
    Specifies the identifier for the MCP server. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    database String
    The database in which to create the MCP server. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    schema String
    The schema in which to create the MCP server. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    specification String
    Specifies a YAML object containing the MCP server tool definitions. The provider wraps it in $$ by default, so be aware of that while referencing the argument in the spec definition. Using $$ in this field is disallowed.
    comment String
    Specifies a comment for the MCP server.
    name String
    Specifies the identifier for the MCP server. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    database string
    The database in which to create the MCP server. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    schema string
    The schema in which to create the MCP server. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    specification string
    Specifies a YAML object containing the MCP server tool definitions. The provider wraps it in $$ by default, so be aware of that while referencing the argument in the spec definition. Using $$ in this field is disallowed.
    comment string
    Specifies a comment for the MCP server.
    name string
    Specifies the identifier for the MCP server. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    database str
    The database in which to create the MCP server. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    schema str
    The schema in which to create the MCP server. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    specification str
    Specifies a YAML object containing the MCP server tool definitions. The provider wraps it in $$ by default, so be aware of that while referencing the argument in the spec definition. Using $$ in this field is disallowed.
    comment str
    Specifies a comment for the MCP server.
    name str
    Specifies the identifier for the MCP server. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    database String
    The database in which to create the MCP server. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    schema String
    The schema in which to create the MCP server. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    specification String
    Specifies a YAML object containing the MCP server tool definitions. The provider wraps it in $$ by default, so be aware of that while referencing the argument in the spec definition. Using $$ in this field is disallowed.
    comment String
    Specifies a comment for the MCP server.
    name String
    Specifies the identifier for the MCP server. Due to technical limitations (read more here), avoid using the following characters: |, ., ".

    Outputs

    All input properties are implicitly available as output properties. Additionally, the McpServer resource produces the following output properties:

    DescribeOutputs List<McpServerDescribeOutput>
    Outputs the result of DESCRIBE MCP SERVER for this MCP server.
    FullyQualifiedName string
    Fully qualified name of the resource. For more information, see object name resolution.
    Id string
    The provider-assigned unique ID for this managed resource.
    ShowOutputs List<McpServerShowOutput>
    Outputs the result of SHOW MCP SERVERS for this MCP server.
    DescribeOutputs []McpServerDescribeOutput
    Outputs the result of DESCRIBE MCP SERVER for this MCP server.
    FullyQualifiedName string
    Fully qualified name of the resource. For more information, see object name resolution.
    Id string
    The provider-assigned unique ID for this managed resource.
    ShowOutputs []McpServerShowOutput
    Outputs the result of SHOW MCP SERVERS for this MCP server.
    describe_outputs list(object)
    Outputs the result of DESCRIBE MCP SERVER for this MCP server.
    fully_qualified_name string
    Fully qualified name of the resource. For more information, see object name resolution.
    id string
    The provider-assigned unique ID for this managed resource.
    show_outputs list(object)
    Outputs the result of SHOW MCP SERVERS for this MCP server.
    describeOutputs List<McpServerDescribeOutput>
    Outputs the result of DESCRIBE MCP SERVER for this MCP server.
    fullyQualifiedName String
    Fully qualified name of the resource. For more information, see object name resolution.
    id String
    The provider-assigned unique ID for this managed resource.
    showOutputs List<McpServerShowOutput>
    Outputs the result of SHOW MCP SERVERS for this MCP server.
    describeOutputs McpServerDescribeOutput[]
    Outputs the result of DESCRIBE MCP SERVER for this MCP server.
    fullyQualifiedName string
    Fully qualified name of the resource. For more information, see object name resolution.
    id string
    The provider-assigned unique ID for this managed resource.
    showOutputs McpServerShowOutput[]
    Outputs the result of SHOW MCP SERVERS for this MCP server.
    describe_outputs Sequence[McpServerDescribeOutput]
    Outputs the result of DESCRIBE MCP SERVER for this MCP server.
    fully_qualified_name str
    Fully qualified name of the resource. For more information, see object name resolution.
    id str
    The provider-assigned unique ID for this managed resource.
    show_outputs Sequence[McpServerShowOutput]
    Outputs the result of SHOW MCP SERVERS for this MCP server.
    describeOutputs List<Property Map>
    Outputs the result of DESCRIBE MCP SERVER for this MCP server.
    fullyQualifiedName String
    Fully qualified name of the resource. For more information, see object name resolution.
    id String
    The provider-assigned unique ID for this managed resource.
    showOutputs List<Property Map>
    Outputs the result of SHOW MCP SERVERS for this MCP server.

    Look up Existing McpServer Resource

    Get an existing McpServer resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: McpServerState, opts?: CustomResourceOptions): McpServer
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            comment: Optional[str] = None,
            database: Optional[str] = None,
            describe_outputs: Optional[Sequence[McpServerDescribeOutputArgs]] = None,
            fully_qualified_name: Optional[str] = None,
            name: Optional[str] = None,
            schema: Optional[str] = None,
            show_outputs: Optional[Sequence[McpServerShowOutputArgs]] = None,
            specification: Optional[str] = None) -> McpServer
    func GetMcpServer(ctx *Context, name string, id IDInput, state *McpServerState, opts ...ResourceOption) (*McpServer, error)
    public static McpServer Get(string name, Input<string> id, McpServerState? state, CustomResourceOptions? opts = null)
    public static McpServer get(String name, Output<String> id, McpServerState state, CustomResourceOptions options)
    resources:  _:    type: snowflake:McpServer    get:      id: ${id}
    import {
      to = snowflake_mcp_server.example
      id = "${id}"
    }
    
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Comment string
    Specifies a comment for the MCP server.
    Database string
    The database in which to create the MCP server. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    DescribeOutputs List<McpServerDescribeOutput>
    Outputs the result of DESCRIBE MCP SERVER for this MCP server.
    FullyQualifiedName string
    Fully qualified name of the resource. For more information, see object name resolution.
    Name string
    Specifies the identifier for the MCP server. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    Schema string
    The schema in which to create the MCP server. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    ShowOutputs List<McpServerShowOutput>
    Outputs the result of SHOW MCP SERVERS for this MCP server.
    Specification string
    Specifies a YAML object containing the MCP server tool definitions. The provider wraps it in $$ by default, so be aware of that while referencing the argument in the spec definition. Using $$ in this field is disallowed.
    Comment string
    Specifies a comment for the MCP server.
    Database string
    The database in which to create the MCP server. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    DescribeOutputs []McpServerDescribeOutputArgs
    Outputs the result of DESCRIBE MCP SERVER for this MCP server.
    FullyQualifiedName string
    Fully qualified name of the resource. For more information, see object name resolution.
    Name string
    Specifies the identifier for the MCP server. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    Schema string
    The schema in which to create the MCP server. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    ShowOutputs []McpServerShowOutputArgs
    Outputs the result of SHOW MCP SERVERS for this MCP server.
    Specification string
    Specifies a YAML object containing the MCP server tool definitions. The provider wraps it in $$ by default, so be aware of that while referencing the argument in the spec definition. Using $$ in this field is disallowed.
    comment string
    Specifies a comment for the MCP server.
    database string
    The database in which to create the MCP server. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    describe_outputs list(object)
    Outputs the result of DESCRIBE MCP SERVER for this MCP server.
    fully_qualified_name string
    Fully qualified name of the resource. For more information, see object name resolution.
    name string
    Specifies the identifier for the MCP server. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    schema string
    The schema in which to create the MCP server. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    show_outputs list(object)
    Outputs the result of SHOW MCP SERVERS for this MCP server.
    specification string
    Specifies a YAML object containing the MCP server tool definitions. The provider wraps it in $$ by default, so be aware of that while referencing the argument in the spec definition. Using $$ in this field is disallowed.
    comment String
    Specifies a comment for the MCP server.
    database String
    The database in which to create the MCP server. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    describeOutputs List<McpServerDescribeOutput>
    Outputs the result of DESCRIBE MCP SERVER for this MCP server.
    fullyQualifiedName String
    Fully qualified name of the resource. For more information, see object name resolution.
    name String
    Specifies the identifier for the MCP server. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    schema String
    The schema in which to create the MCP server. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    showOutputs List<McpServerShowOutput>
    Outputs the result of SHOW MCP SERVERS for this MCP server.
    specification String
    Specifies a YAML object containing the MCP server tool definitions. The provider wraps it in $$ by default, so be aware of that while referencing the argument in the spec definition. Using $$ in this field is disallowed.
    comment string
    Specifies a comment for the MCP server.
    database string
    The database in which to create the MCP server. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    describeOutputs McpServerDescribeOutput[]
    Outputs the result of DESCRIBE MCP SERVER for this MCP server.
    fullyQualifiedName string
    Fully qualified name of the resource. For more information, see object name resolution.
    name string
    Specifies the identifier for the MCP server. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    schema string
    The schema in which to create the MCP server. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    showOutputs McpServerShowOutput[]
    Outputs the result of SHOW MCP SERVERS for this MCP server.
    specification string
    Specifies a YAML object containing the MCP server tool definitions. The provider wraps it in $$ by default, so be aware of that while referencing the argument in the spec definition. Using $$ in this field is disallowed.
    comment str
    Specifies a comment for the MCP server.
    database str
    The database in which to create the MCP server. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    describe_outputs Sequence[McpServerDescribeOutputArgs]
    Outputs the result of DESCRIBE MCP SERVER for this MCP server.
    fully_qualified_name str
    Fully qualified name of the resource. For more information, see object name resolution.
    name str
    Specifies the identifier for the MCP server. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    schema str
    The schema in which to create the MCP server. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    show_outputs Sequence[McpServerShowOutputArgs]
    Outputs the result of SHOW MCP SERVERS for this MCP server.
    specification str
    Specifies a YAML object containing the MCP server tool definitions. The provider wraps it in $$ by default, so be aware of that while referencing the argument in the spec definition. Using $$ in this field is disallowed.
    comment String
    Specifies a comment for the MCP server.
    database String
    The database in which to create the MCP server. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    describeOutputs List<Property Map>
    Outputs the result of DESCRIBE MCP SERVER for this MCP server.
    fullyQualifiedName String
    Fully qualified name of the resource. For more information, see object name resolution.
    name String
    Specifies the identifier for the MCP server. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    schema String
    The schema in which to create the MCP server. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    showOutputs List<Property Map>
    Outputs the result of SHOW MCP SERVERS for this MCP server.
    specification String
    Specifies a YAML object containing the MCP server tool definitions. The provider wraps it in $$ by default, so be aware of that while referencing the argument in the spec definition. Using $$ in this field is disallowed.

    Supporting Types

    McpServerDescribeOutput, McpServerDescribeOutputArgs

    Comment string
    CreatedOn string
    DatabaseName string
    Name string
    Owner string
    SchemaName string
    ServerSpec string
    Comment string
    CreatedOn string
    DatabaseName string
    Name string
    Owner string
    SchemaName string
    ServerSpec string
    comment string
    created_on string
    database_name string
    name string
    owner string
    schema_name string
    server_spec string
    comment String
    createdOn String
    databaseName String
    name String
    owner String
    schemaName String
    serverSpec String
    comment string
    createdOn string
    databaseName string
    name string
    owner string
    schemaName string
    serverSpec string
    comment String
    createdOn String
    databaseName String
    name String
    owner String
    schemaName String
    serverSpec String

    McpServerShowOutput, McpServerShowOutputArgs

    Comment string
    CreatedOn string
    DatabaseName string
    Name string
    Owner string
    SchemaName string
    Comment string
    CreatedOn string
    DatabaseName string
    Name string
    Owner string
    SchemaName string
    comment string
    created_on string
    database_name string
    name string
    owner string
    schema_name string
    comment String
    createdOn String
    databaseName String
    name String
    owner String
    schemaName String
    comment string
    createdOn string
    databaseName string
    name string
    owner string
    schemaName string
    comment String
    createdOn String
    databaseName String
    name String
    owner String
    schemaName String

    Import

    $ pulumi import snowflake:index/mcpServer:McpServer example '"<database_name>"."<schema_name>"."<mcp_server_name>"'
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Snowflake pulumi/pulumi-snowflake
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the snowflake Terraform Provider.
    snowflake logo
    Viewing docs for Snowflake v2.19.0
    published on Friday, Jul 31, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial