mukundakatta avatar

Agentcast

mukundakatta/agentcast-mcp

Solves the messy LLM output problem when you need reliable JSON back from a model. Exposes three tools: extract_json pulls JSON from prose or fenced blocks using fallback strategies, validate_response gates parsed values against a shape spec with required and optional fields, and build_retry_prompt generates the exact feedback message to send back when validation fails. Built on the agentcast library. Drop it into Claude Desktop, Cursor, or any MCP client via npx. Useful when you're building agents that parse structured responses and need robust extraction plus a standardized retry loop instead of brittle regex or silent failures.

GitHub stars
1
tools
3
transport
STDIO
last updated
Apr 27, 2026

Tools

3 tools

Public tool metadata for what this MCP can expose to an agent.

extract_jsonPull a JSON value out of messy LLM output. Tries the whole text, then a fenced ```json``` block, then the largest balanced {...} / [...] substring. Returns the parsed value plus which strategy succeeded.

Pull a JSON value out of messy LLM output. Tries the whole text, then a fenced ```json``` block, then the largest balanced {...} / [...] substring. Returns the parsed value plus which strategy succeeded.

No parameter schema in public metadata yet.

validate_responseValidate a parsed JSON value against an agentcast shape spec.

Validate a parsed JSON value against an agentcast shape spec.

No parameter schema in public metadata yet.

build_retry_promptGiven an attempt history, produce the validation-error feedback message agentcast appends to the conversation when the model returned the wrong shape.

Given an attempt history, produce the validation-error feedback message agentcast appends to the conversation when the model returned the wrong shape.

No parameter schema in public metadata yet.

Sponsors

Readme

agentcast-mcp

npm tests mcp

An MCP server that gives AI assistants the ability to enforce structured output: extract JSON from messy LLM text, gate it against a shape spec, and produce the retry feedback message when the model returns the wrong shape.

Built on top of @mukundakatta/agentcast. Works with Claude Desktop, Cursor, Cline, Windsurf, Zed, and any other MCP client.

Tools exposed

extract_json

Pull a JSON value out of messy LLM output. Tries the whole text, then a fenced ```json ``` block, then the largest balanced {...} / [...] substring. Returns the parsed value plus which strategy succeeded.

{
  "text": "Sure, here you go:\n```json\n{\"answer\": 42}\n```\nLet me know!"
}

→

{
  "value": { "answer": 42 },
  "found": true,
  "source": "fenced_json"
}

View the full README on GitHub

Details

Repository
github.com/mukundakatta/agentcast-mcp
Website
github.com/MukundaKatta/agentcast-mcp
Categories
AI & LLM Tools, Search & Web Crawling, Data & Analytics
Package
@mukundakatta/agentcast-mcp
Transport
STDIO
Registry
MCP registry, active

More from mukundakatta

Related AI & LLM Tools MCP servers

View all
1mukundakatta avatarAgentguardmukundakatta/agentguard-mcpNetwork-egress firewall for agent tools: check URLs against a declarative policy.1stars
2mukundakatta avatarAgentvetmukundakatta/agentvet-mcpValidate tool-call args before execution. Returns LLM-friendly retry hints.1stars
3new1direction avatarKorg Ledgernew1direction/korgexVerifiable cognition: prove a session ledger is tamper-evident; audit & import any agent's logs.1stars
4agentra-commerce avatarXapagentra-commerce/xap-sdkAgent settlement protocol — discover, negotiate, settle, and verify with XAP.0stars
5pquattro avatarMemoraEUpquattro/memoraeu-memoraeu-mcpZero-knowledge persistent memory for Claude — encrypted, semantic search, EU hosted.0stars
6u2n4 avatarVEO 3.1u2n4/gemini-media-mcp4K video generation via Google VEO 3.1: text-to-video, image-to-video, video extension0stars