mukundakatta avatar

Streamparse

mukundakatta/streamparse-mcp

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 tools

Public 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

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.

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


View the full README on GitHub

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

More from mukundakatta

Related AI & LLM Tools MCP servers

View all
1newmannn91 avatarMemdrive Mcpnewmannn91/memdriveLocal-first MCP memory: Markdown notes and images with full-text search for Claude and Cursor.0stars
2smara-io avatarSmarasmara-io/mcp-serverPersistent cross-platform memory for AI agents with Ebbinghaus decay scoring.0stars
3perceptdot avatarPerceptdot Coreio.github.perceptdot/coreB2A2H MCP server — AI agent app store. Auto-discover and recommend MCP servers for any project.0stars
4perceptdot avatarPerceptdot GitHubio.github.perceptdot/githubAI agent vision for GitHub repository monitoring — with ROI measurement.0stars
5perceptdot avatarPerceptdot Sentryio.github.perceptdot/sentryAI agent vision for Sentry error tracking — with ROI measurement. perceptdot.com0stars
6perceptdot avatarPerceptdot Vercelio.github.perceptdot/vercelAI agent vision for Vercel deployments — with ROI measurement. perceptdot.com0stars