Feedback

Key-Value Extractor MCP Server

@kunihiros Claim

Basic information

Runtime
Python
Version
1.0.0
Category
License
GPL-3.0
Transports
stdio
Author
kunihiros
Submitted by
Community
Quality
10
Stars
1

About Key-Value Extractor MCP Server

Key-Value Extractor quickly pulls structured key-value pairs from messy text like emails or receipts using advanced detection and validation steps.

Key-Value Extractor is a MCP server in the Ai Ml category listed in the AddMCP.net directory, published by kunihiros. Supported transport: stdio. Runtime: Python. License: GPL-3.0. The repository has 1 GitHub stars. Source code is hosted on github.com. Related topics: ai-ml, analytics-data, community, data-structuring, key-value-extraction.

Setup

{
    "mcpServers": {
        "kv-extractor-mcp-server": {
            "command": "pipx",
            "args": [
                "run",
                "kv-extractor-mcp-server",
                "--log=off"
            ],
            "env": {
                "OPENAI_API_KEY": "{apikey}"
            }
        }
    }
}

Key-Value Extractor MCP Server config

Add this server to your MCP-compatible client using the configuration below.

{
    "mcpServers": {
        "kv-extractor-mcp-server": {
            "command": "pipx",
            "args": [
                "run",
                "kv-extractor-mcp-server",
                "--log=off"
            ],
            "env": {
                "OPENAI_API_KEY": "{apikey}"
            }
        }
    }
}

Key-Value Extractor MCP Server tools

Tool list not available yet

This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.

We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.

Overview

What is Key-Value Extractor?

A Model Context Protocol (MCP) server that extracts key-value pairs from arbitrary, noisy, or unstructured text using GPT-4.1-mini and pydantic-ai. It ensures type safety and supports multiple output formats (JSON, YAML, TOML). Perfect extraction is not guaranteed.

How to use Key-Value Extractor?

Requires Python 3.9+ and an OpenAI API key set in settings.json. Run python server.py. The server exposes three tools: extract_json, extract_yaml, and extract_toml. When configuring the MCP host you must specify log mode via --log=off or --log=on --logfile=<absolute path>.

Key features of Key-Value Extractor

  • Extracts key-value pairs from noisy or broken input text.
  • Supports Japanese, English, and Chinese (automatic language detection).
  • Uses type-safe Pydantic output validation.
  • Returns results in JSON, YAML, or TOML format.
  • Always returns a well-formed response, even on extraction failure.
  • Employs GPT-4.1-mini for extraction, type annotation, and type evaluation.

Use cases of Key-Value Extractor

  • Extracting structured data from order confirmation emails or invoices.
  • Parsing messy or unstructured text to capture key information.
  • Converting free-text input into machine-readable JSON, YAML, or TOML.
  • Automating data entry by pulling key-value pairs from customer messages.

Frequently asked questions

1 What languages are supported?

Japanese, English, and Chinese (Simplified/Traditional). If the detected language is not one of these, the server returns an error.

2 Is perfect extraction guaranteed?

No. Extraction relies on LLMs and pydantic-ai, so perfect extraction is not guaranteed, especially with highly ambiguous or broken input.

3 What are the output format limitations?

TOML cannot represent arrays of objects or deeply nested structures. In such cases, complex values are stored as JSON strings in TOML. JSON and YAML can represent nested structures as-is.

4 What are the runtime requirements?

Python 3.9+, an OpenAI API key, and an internet connection for LLM calls. On first launch, spaCy language models are downloaded automatically, which may take extra time.

5 How long does processing take?

Processing time varies. A sample measurement for 200 input tokens (~400 characters) took about 15 seconds with GPT-4.1-mini. Longer inputs and network conditions can increase time.

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬