
Agentcast
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 toolsPublic 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
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"
}
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