jstruct-mcp
v0.1.2
Published
MCP server for jstruct - JSON structure extraction for LLMs
Maintainers
Readme
jstruct-mcp
MCP (Model Context Protocol) server for jstruct - JSON structure extraction for LLMs.
Installation
Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"jstruct": {
"command": "npx",
"args": ["-y", "jstruct-mcp"]
}
}
}Config file location:
- Windows:
%APPDATA%\Claude\claude_desktop_config.json - macOS:
~/Library/Application Support/Claude/claude_desktop_config.json
Global Install
npm install -g jstruct-mcpTools
jstruct_extract
Extract JSON structure by collapsing arrays and truncating strings.
Parameters:
| Name | Type | Default | Description |
|------|------|---------|-------------|
| json_input | string | - | JSON string to process |
| file_path | string | - | Path to JSON file (alternative) |
| array_limit | number | 1 | Array items to retain |
| string_limit | number | 64 | Max string length |
| compact | boolean | false | Compact output |
jstruct_analyze
Analyze JSON and return structure statistics.
Parameters:
json_inputorfile_path
Returns: Analysis report with depth, counts, and collapsed schema.
Example
In Claude:
Use jstruct_extract on this:
{"users": [{"id": 1}, {"id": 2}], "total": 2}
Output:
{
"users": [{"id": 1}],
"total": 2
}Requirements
- Node.js >= 18
- jstruct binary (bundled or in PATH)
License
MIT
