Blocks

MCP Resource

Create and manage Model Context Protocol resources

Create and manage resources for MCP servers. Resources provide contextual data to LLM applications.

Back to Catalog
MCPmcp_resource

Block Preview

MCP Resource

Create and manage Model Context Protocol resources

Usage

  1. Add the block to your workflow and connect it to the upstream step.
  2. Configure any required credentials or tokens in the inputs.
  3. Fill in required inputs and optional parameters for the run.
  4. Run a test execution, inspect outputs, and iterate before deploying.
  5. Deploy the mcp_resource block with monitoring enabled in production.

Inputs (UI)

Operation

dropdown

Layout: full

Options: Create Resource, Get Resource, Update Resource, Delete Resource

Resource Name

short-input

Placeholder: my-resource

Layout: half

Condition: operation = ["create_resource","get_resource","update_resource","delete_resource"]

Resource Template

short-input

Placeholder: resource://{param1}/{param2}

Layout: full

Condition: operation = ["create_resource","update_resource"]

Resource Content

long-input

Placeholder: Content of the resource

Layout: full

Condition: operation = ["create_resource","update_resource"]

MIME Type

short-input

Placeholder: text/plain

Layout: half

Condition: operation = ["create_resource","update_resource"]

Server URL

short-input

Placeholder: http://localhost:3000/mcp or stdio://path/to/server.js

Layout: full

Resource Parameters (JSON)

code

Placeholder: { "param1": "value1", "param2": "value2" }

Layout: full

Condition: operation = ["get_resource"]

Timeout (ms)

short-input

Placeholder: 30000

Layout: half

Inputs (API)

operation

string

Required

serverUrl

string

Required

resourceName

string

Optional

resourceTemplate

string

Optional

resourceContent

string

Optional

mimeType

string

Optional

resourceParams

json

Optional

timeout

number

Optional

Outputs

Primary response type:

{
  "success": "boolean",
  "contents": "json",
  "error": "string"
}

Tool Access

mcp_resource
MCP Resource | NowFlow Blocks