MCP providers are external services that host and serve tools via the Model Context Protocol (MCP). Data Designer uses provider configurations to establish connections to these services.
An MCP provider defines how Data Designer connects to a tool server. Data Designer supports two provider types:
When you create a ToolConfig, you reference providers by name, and Data Designer uses those provider settings to communicate with the appropriate MCP servers.
Use MCPProvider to connect to a pre-existing MCP server. Both SSE (Server-Sent Events) and Streamable HTTP transports are supported:
Use LocalStdioMCPProvider to launch an MCP server as a subprocess:
The api_key field can be specified in two ways:
Environment variable name (recommended): Set api_key to the name of an environment variable (e.g., "MCP_API_KEY"). Data Designer will resolve it at runtime.
Plain-text value: Set api_key to the actual API key string. This is less secure and not recommended for production.
Both provider types use a provider_type discriminator field in YAML configurations. When writing YAML configs manually (e.g., in ~/.data-designer/mcp_providers.yaml), include the discriminator:
You can configure multiple MCP providers and use them together in a single ToolConfig: