Skip to main content
Glama
json-promptor-mcp

json-promptor-mcp

by ahopo

json-promptor-mcp

An MCP server that converts raw text prompts into structured JSON prompts using heuristic keyword extraction — no API keys required.

Tools

convert_prompt_to_json

Takes a raw text prompt and returns a structured JSON object with extracted fields:

  • purpose — what the prompt is trying to achieve

  • goal — the specific desired outcome

  • audience — who the output is for

  • context — background information or constraints

  • tone — desired tone/style (formal, casual, technical, etc.)

  • instructions — step-by-step directions found in the prompt

  • format — desired output format (list, paragraph, code, etc.)

  • original_prompt — the raw input preserved as-is

edit_prompt_json

Takes an existing structured JSON prompt, a field name, and a new value. Returns the updated JSON.

Related MCP server: simple-prompts-mcp

Build

npm install
npm run build

MCP Config for Kiro

Add to your mcp.json:

{
  "mcpServers": {
    "json-promptor": {
      "command": "node",
      "args": ["json-promptor-mcp/dist/index.js"]
    }
  }
}

Example

Input prompt:

Write a formal blog post for developers explaining how to use Docker, as a numbered list.

Output:

{
  "purpose": "write a formal blog post for developers explaining how to use docker, as a numbered list",
  "goal": "",
  "audience": "developers",
  "context": "",
  "tone": "formal",
  "instructions": "",
  "format": "numbered list",
  "original_prompt": "Write a formal blog post for developers explaining how to use Docker, as a numbered list."
}

Available Tools

2 tools
convert_prompt_to_jsonA

Convert a raw text prompt into a structured JSON prompt with extracted fields (purpose, goal, audience, context, tone, instructions, format)

Inputs: prompt (required).

edit_prompt_jsonB

Edit a field in an existing structured JSON prompt

Inputs: structured_prompt (required), field (required), value (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.8/5.0

    Scored across 2 tools

    Disambiguation5/5

    The two tools are clearly distinct: one converts raw text to a structured JSON prompt, the other edits an existing JSON prompt. There is no ambiguity or overlap.

    Naming Consistency5/5

    Both tools follow the verb_noun pattern consistently: convert_prompt_to_json and edit_prompt_json. The naming is clear and predictable.

    Tool Count4/5

    With only 2 tools, the server is minimal but appropriately scoped for its narrow purpose of converting and editing JSON prompts. However, it could benefit from a few more tools like validation.

    Completeness4/5

    The tools cover the core workflow of converting raw prompts to JSON and editing them. Missing operations like validation or export are minor gaps but do not severely hinder the stated purpose.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers