
Agentcast MCP
- 1 repo stars
- Updated August 1, 2026
- MukundaKatta/agentcast-mcp
Agentcast MCP is a MCP server that extracts and validates JSON from messy LLM text for reliable agent structured outputs.
About
Agentcast MCP is a Model Context Protocol server that extracts and validates JSON from unstructured or partially structured LLM responses. developers assembling agent pipelines install it when tool calls, webhooks, or downstream code expect strict JSON but models routinely wrap payloads in prose, markdown fences, or trailing commentary. Published as @mukundakatta/agentcast-mcp at version 0.1.0 with stdio transport, it slots into Claude Code, Cursor, or Codex MCP configs alongside other servers. It belongs in Build under agent-tooling because it improves reliability of the agent layer itself rather than customer-facing features directly. It is not a general JSON Schema IDE or a replacement for native structured-output modes on every model; it is a pragmatic MCP enforcer when you still see messy text. Combine it with your own schema definitions in calling skills for best results.
- Structured-output enforcer: extract and validate JSON from noisy LLM text
- npm package @mukundakatta/agentcast-mcp v0.1.0 with stdio transport
- Reduces custom parsing glue in agent workflows and tool-return handlers
- Fits multi-step agents that require schema-valid payloads between MCP calls
- Lightweight MCP layer focused on JSON extraction and validation
Agentcast MCP by the numbers
- Data as of Aug 10, 2026 (Skillselion catalog sync)
claude mcp add agentcast -- npx -y @mukundakatta/agentcast-mcpAdd your badge
Show developers this MCP server is listed on Skillselion. Paste this into your README.
| repo stars | ★ 1 |
|---|---|
| Package | @mukundakatta/agentcast-mcp |
| Transport | STDIO |
| Auth | None |
| Last updated | August 1, 2026 |
| Repository | MukundaKatta/agentcast-mcp ↗ |
What it does
Force reliable JSON from messy model output so agent pipelines can validate schemas without fragile regex in every skill.
Who is it for?
Best when you're running multi-tool agents and need dependable JSON handoffs without rewriting parsers per integration.
Skip if: Projects where the host model already guarantees strict JSON mode end-to-end, or teams that do not use MCP at all.
What you get
After registering Agentcast, your agent can delegate JSON extraction and validation to MCP tools and pass clean objects to the next step.
- Registered Agentcast MCP server for JSON enforce steps
- Cleaner tool-to-tool data passes without ad-hoc regex parsers
- Fewer agent loop failures from malformed model JSON
By the numbers
- Server version 0.1.0 on npm as @mukundakatta/agentcast-mcp
- stdio MCP transport
- Single focused capability: extract and validate JSON from LLM text
README.md
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"
}
source is one of whole, fenced_json, fenced_plain,
balanced_substring, or none.
validate_response
Validate a parsed JSON value against an agentcast shape spec. Spec maps field
name to type: string, number, boolean, array, object. Suffix with
? for optional.
{
"value": { "name": "ada" },
"shape": { "name": "string", "age": "number" }
}
→
{
"valid": false,
"error": "missing required field 'age'"
}
build_retry_prompt
Given an attempt history, produce the validation-error feedback message agentcast appends to the conversation when the model returned the wrong shape. Codifies the "validation error as feedback" pattern for non-Node MCP clients that want to drive the same retry loop manually.
{
"attempts": [
{ "text": "{\"name\":\"ada\"}", "error": "missing required field 'age'" }
],
"expected_shape": { "name": "string", "age": "number" }
}
→
{
"feedback": "Your previous response did not match the required shape. Error: missing required field 'age'\n\nTry again. Respond with ONLY valid JSON that fixes the error above.\n\nExpected shape: {\"name\":\"string\",\"age\":\"number\"}"
}
Install
Claude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"agentcast": {
"command": "npx",
"args": ["-y", "@mukundakatta/agentcast-mcp"]
}
}
}
Cursor / Cline / Windsurf / Zed
Same shape, in the appropriate mcp.json for your client. Most clients
auto-discover via npx -y @mukundakatta/agentcast-mcp.
Local install
npm install -g @mukundakatta/agentcast-mcp
mcp-agentcast # listens on stdio
Why this matters
When an LLM is supposed to return structured data, it sometimes wraps the
JSON in prose, fences, or hallucinated fields. Standard JSON.parse throws.
Hand-rolled regex misses nested structure. This MCP server gives any model
driving an agent a real handle on (1) pulling JSON out of the response,
(2) checking it matches the expected shape, and (3) building the exact retry
prompt that nudges the model to fix it on the next turn.
License
MIT.
Recommended MCP Servers
How it compares
JSON extract-and-validate MCP utility, not a full agent framework or prompt library marketplace.
FAQ
Who is Agentcast MCP MCP for?
Developers and agent authors who need MCP tools to turn sloppy LLM strings into validated JSON for downstream code.
When should I use Agentcast MCP MCP?
Use it during agent-tooling Build when tool results or user-facing automations require schema-safe JSON parsed from free-form model text.
How do I add Agentcast MCP MCP to my agent?
Install @mukundakatta/agentcast-mcp via npm, add the stdio server entry in your MCP config, and call its extract/validate tools from your agent session.