Blocks
MCP Client
Connect to Model Context Protocol servers
Connect to MCP servers to access resources, tools, and prompts. MCP is an open protocol that enables seamless integration between LLM applications and external data sources.
Block Preview
MCP Client
Connect to Model Context Protocol servers
Usage
- Add the block to your workflow and connect it to the upstream step.
- Configure any required credentials or tokens in the inputs.
- Fill in required inputs and optional parameters for the run.
- Run a test execution, inspect outputs, and iterate before deploying.
- Deploy the mcp_client block with monitoring enabled in production.
Inputs (UI)
Operation
dropdownLayout: full
Options: List Resources, Read Resource, List Tools, Call Tool
Server URL
short-inputPlaceholder: http://localhost:3000/mcp or stdio://path/to/server.js
Layout: full
Resource URI
short-inputPlaceholder: resource://path/to/resource
Layout: full
Condition: operation = "read_resource"
Tool Name
short-inputPlaceholder: tool-name
Layout: half
Condition: operation = "call_tool"
Tool Arguments (JSON)
codePlaceholder: { "param1": "value1", "param2": "value2" }
Layout: full
Condition: operation = "call_tool"
Prompt Name
short-inputPlaceholder: prompt-name
Layout: half
Condition: operation = "get_prompt"
Prompt Arguments (JSON)
codePlaceholder: { "param1": "value1", "param2": "value2" }
Layout: full
Condition: operation = "get_prompt"
Timeout (ms)
short-inputPlaceholder: 30000
Layout: half
Inputs (API)
operation
stringRequired
serverUrl
stringRequired
resourceUri
stringOptional
toolName
stringOptional
toolArguments
jsonOptional
promptName
stringOptional
promptArguments
jsonOptional
timeout
numberOptional
Outputs
Primary response type:
{
"success": "boolean",
"result": "json",
"error": "string"
}