Streamparse

io.github.MukundaKattaPublished by GitHub account MukundaKattav1.0.1Updated Oct 24, 2026

Parse partial / truncated / messy JSON for LLM tool calls and structured outputs.

VerifiedSTDIODesktop onlyDeveloper ToolsAI & ML

Overview

AI-generated overview

A local MCP server that lets an assistant parse partial, truncated or messy JSON, extract JSON from prose, and validate JSON strictly.

What you can do
Recover a value from possibly truncated JSON, with synthetic closure of open strings, arrays and objects, plus completeness, path, bytes consumed and confidence details. Extract the first parseable JSON value from LLM output, stripping prose, code fences and comments. Validate JSON strictly against RFC 8259, returning the parsed value or a byte position and error message.
When to use it
Useful when an assistant works with half-formed or truncated JSON, such as interrupted tool calls or structured output wrapped in prose, and needs a usable value instead of a parse error.
Requirements
Runs as a local process over stdio, installed from the npm package @mukundakatta/streamparse-mcp, typically launched with npx or a global npm install. Node.js is needed; no accounts, API keys or environment variables are declared.
Before you install
No credentials or write actions are declared. Parsed results from truncated input are synthetic completions, so treat recovered values as approximate and check the completeness and confidence details before relying on them.

Installation

In SourceWeft

  1. Open Streamparse in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.

Other MCP clients

Follow the launch instructions in the repository.

README

streamparse-mcp

[npm] [tests] [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.

json
{  "text": "{\"type\":\"tool_use\",\"name\":\"edit_file\",\"input\":{\"path\":\"a/b.ts\",\"cont"}

→

json
{  "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

Strip prose, ```json fences, and comments around a JSON value embedded in LLM output. Returns the first parseable value.

Sure, here you go:```json{ "answer": 42 }

Let me know!


→ `{ "answer": 42 }`
### `validate_json`
Strict-mode RFC 8259 validator. Returns `ok=true` and the parsed value onsuccess, or `ok=false` with a precise byte position and error message onfailure.
## Install
### Claude Desktop
Add to `claude_desktop_config.json`:
```json{  "mcpServers": {    "streamparse": {      "command": "npx",      "args": ["-y", "@mukundakatta/streamparse-mcp"]    }  }}

Cursor / Cline / Windsurf / Zed

Same shape, in the appropriate mcp.json for your client. Most clients auto-discover via npx -y @mukundakatta/streamparse-mcp.

Local install

bash
npm install -g @mukundakatta/streamparse-mcpmcp-streamparse        # listens on stdio

Why this matters

When an LLM is mid-tool-call and you need the assistant to reason about the half-formed JSON it just wrote, no other tool gives a usable answer. Standard JSON.parse throws. Regex extraction misses nested structure. This MCP server gives Claude (or whichever model is driving) a real handle on partial JSON, right where it lives.

License

MIT.

Source: README.md at commit 0ecba62

Tools

0
SourceWeft has not started this package in its sandbox yet, so its tools are not known.

Version history

1
  1. v1.0.1LatestSep 16, 2026

Score

50% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 days25 pts

    Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.

  • Auth declared10 pts

    Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.

  • Tools listed15 pts

    Answer tools/list without a credential, or ship a package that starts in a sandbox without one.

  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts