
Streamparse
When Claude or another LLM is streaming a tool call and you need to work with the JSON before it finishes, this gives you three tools that actually handle the mess. parse_partial_json closes open braces and quotes to return a usable object even from truncated input, reporting confidence and how many bytes it consumed. extract_json_from_text strips markdown fences and prose around embedded JSON. validate_json does strict RFC 8259 checking with precise error positions. Built on the streamparse library, it runs via npx in Claude Desktop, Cursor, Cline, and other MCP clients. Useful when you're building agents that need to reason about their own incomplete structured outputs mid-generation.
- tools
- 3
- transport
- STDIO
- last updated
- Apr 25, 2026
Tools
3 toolsPublic tool metadata for what this MCP can expose to an agent.
parse_partial_jsonRecover a JSON value from a possibly-truncated string. Always returns a valid value with synthetic closure of any open strings, arrays, or objects.
Recover a JSON value from a possibly-truncated string. Always returns a valid value with synthetic closure of any open strings, arrays, or objects.
No parameter schema in public metadata yet.
extract_json_from_textStrip prose, ```json fences, and comments around a JSON value embedded in LLM output. Returns the first parseable value.
Strip prose, ```json fences, and comments around a JSON value embedded in LLM output. Returns the first parseable value.
No parameter schema in public metadata yet.
validate_jsonStrict-mode RFC 8259 validator. Returns ok=true and the parsed value on success, or ok=false with a precise byte position and error message on failure.
Strict-mode RFC 8259 validator. Returns ok=true and the parsed value on success, or ok=false with a precise byte position and error message on failure.
No parameter schema in public metadata yet.
Sponsors
Readme
streamparse-mcp
An MCP server that gives AI assistants the ability to parse partial / messy / truncated JSON.
Built on top of @mukundakatta/streamparse.
Works with Claude Desktop, Cursor, Cline, Windsurf, Zed, and any other MCP client.
Tools exposed
parse_partial_json
Recover a JSON value from a possibly-truncated string. Always returns a valid value with synthetic closure of any open strings, arrays, or objects.
{
"text": "{\"type\":\"tool_use\",\"name\":\"edit_file\",\"input\":{\"path\":\"a/b.ts\",\"cont"
}
→
{
"value": {
"type": "tool_use",
"name": "edit_file",
"input": { "path": "a/b.ts", "cont": null }
},
"complete": false,
"path": ["input", "cont"],
"bytes_consumed": 67,
"confidence": 0.65
}
extract_json_from_text
Details
- Repository
- github.com/mukundakatta/streamparse-mcp
- Website
- github.com/MukundaKatta/streamparse-mcp
- Categories
- AI & LLM Tools, Data & Analytics
- Package
@mukundakatta/streamparse-mcp- Transport
- STDIO
- Registry
- MCP registry, active