
A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

An MCP server that extracts type-safe key-value pairs from arbitrary, noisy, or unstructured text and can return them as JSON, YAML, or TOML.
Flexible Key-Value Extracting MCP Server is cataloged as an MCP server attributed to kunihiros. An MCP server that extracts type-safe key-value pairs from arbitrary, noisy, or unstructured text and can return them as JSON, YAML, or TOML. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: GPL-3.0-or-later. Check the source repository's current license and terms before using, modifying or distributing this software.
能力定义尚未审核。未核验的采集内容不会作为可信接口展示。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for Flexible Key-Value Extracting MCP Server are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
No. It automatically identifies and extracts relevant key-value pairs from unstructured text without requiring predefined keys.
It can return extracted key-value pairs as JSON, YAML, or TOML.
It supports Japanese, English, Simplified Chinese, and Traditional Chinese using spaCy named-entity recognition after automatic language detection.
README.md · 69bc69a899ac · 采集于 2026-11-13 08:17:45 UTC
保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。
当前显示最后一次成功采集的文档快照,请以来源页面为准。
Version: 0.3.3
This MCP server extracts key-value pairs from arbitrary, noisy, or unstructured text using LLMs (GPT-4.1-mini) and pydantic-ai. It ensures type safety and supports multiple output formats (JSON, YAML, TOML). The server is robust to any input and always attempts to structure data as much as possible, however, perfect extraction is not guaranteed.
While many Large Language Model (LLMs) services offer structured output capabilities, this MCP server provides distinct advantages for key-value extraction, especially from challenging real-world text:
--log=on), and the FastMCP / pydantic-ai banners are suppressed.'AgentRunResult' object has no attribute 'data' under current pydantic-ai. The server now targets the pydantic-ai 2.x API.--help) no longer requires OPENAI_API_KEY. A missing key is reported as an explicit tool-call error instead of an import-time crash.smithery.yaml, and the Smithery-generated Dockerfile); the Smithery listing for this server is no longer reachable (404).fastmcp>=4,<5, pydantic-ai>=2,<3, spacy>=3.8,<3.9, ...) so a fresh uvx / pipx run resolves reproducibly. Python 3.10+ is required./extract_json : Extracts type-safe key-value pairs in JSON format from input text./extract_yaml : Extracts type-safe key-value pairs in YAML format from input text./extract_toml : Extracts type-safe key-value pairs in TOML format from input text.
Note:
| Input Tokens | Input Characters (approx.) | Measured Processing Time (sec) | Model Configuration |
|---|---|---|---|
| 200 | ~400 | ~15 | gpt-4.1-mini |
Actual processing time may vary significantly depending on API response, network conditions, and model load. Even short texts may take 15 seconds or more.
The server has been tested with various inputs, including:
Below is a flowchart representing the processing flow of the key-value extraction pipeline as implemented in server.py:
flowchart TD
A[Input Text] --> B[Step 0: Preprocessing with spaCy Lang Detect then NER]
B --> C[Step 1: Key-Value Extraction - LLM]
C --> D[Step 2: Type Annotation - LLM]
D --> E[Step 3: Type Evaluation - LLM]
E --> F[Step 4: Type Normalization - Static Rules + LLM]
F --> G[Step 5: Final Structuring with Pydantic]
G --> H[Output in JSON/YAML/TOML]
This server uses spaCy with automatic language detection to extract named entities from the input text before passing it to the LLM. Supported languages are Japanese (ja_core_news_md), English (en_core_web_sm), and Chinese (Simplified/Traditional, zh_core_web_sm).
The language of the input text is automatically detected using langdetect.
If the detected language is not Japanese, English, or Chinese, the server returns an error: Unsupported lang detected.
The appropriate spaCy model is automatically downloaded and loaded as needed. No manual installation is required.
The extracted phrase list is included in the LLM prompt as follows:
[Preprocessing Candidate Phrases (spaCy NER)] The following is a list of phrases automatically extracted from the input text using spaCy's detected language model. These phrases represent detected entities such as names, dates, organizations, locations, numbers, etc. This list is for reference only and may contain irrelevant or incorrect items. The LLM uses its own judgment and considers the entire input text to flexibly infer the most appropriate key-value pairs.
This project's key-value extraction pipeline consists of multiple steps. Each step's details are as follows:
ja_core_news_md, en_core_web_sm, zh_core_web_sm) to extract named entities.key: person, value: ["Tanaka", "Sato"]key: person, value: ["Tanaka", "Sato"] -> list[str]This pipeline is designed to accommodate future list format support and Pydantic schema extensions.
items = ["A", "B"]) can be represented natively, but
arrays of objects (dicts) or deeply nested structures cannot be directly represented due to TOML specifications.[{"name": "A"}, {"name": "B"}]) are
stored as "JSON strings" in TOML values.Input:
Thank you for your order (Order Number: ORD-98765). Product: High-Performance Laptop, Price: 89,800 JPY (tax excluded), Delivery: May 15-17. Shipping address: 1-2-3 Shinjuku, Shinjuku-ku, Tokyo, Apartment 101. Phone: 090-1234-5678. Payment: Credit Card (VISA, last 4 digits: 1234). For changes, contact support@example.com.
Output (JSON):
{
"order_number": "ORD-98765",
"product_name": "High-Performance Laptop",
"price": 89800,
"price_currency": "JPY",
"tax_excluded": true,
"delivery_start_date": "20240515",
"delivery_end_date": "20240517",
"shipping_address": "1-2-3 Shinjuku, Shinjuku-ku, Tokyo, Apartment 101",
"phone_number": "090-1234-5678",
"payment_method": "Credit Card",
"card_type": "VISA",
"card_last4": "1234",
"customer_support_email": "support@example.com"
}
Output (YAML):
order_number: ORD-98765
product_name: High-Performance Laptop
price: 89800
price_currency: JPY
tax_excluded: true
delivery_start_date: '20240515'
delivery_end_date: '20240517'
shipping_address: 1-2-3 Shinjuku, Shinjuku-ku, Tokyo, Apartment 101
phone_number: 090-1234-5678
payment_method: Credit Card
card_type: VISA
card_last4: '1234'
customer_support_email: support@example.com
Output (TOML, simple case):
order_number = "ORD-98765"
product_name = "High-Performance Laptop"
price = 89800
price_currency = "JPY"
tax_excluded = true
delivery_start_date = "20240515"
delivery_end_date = "20240517"
shipping_address = "1-2-3 Shinjuku, Shinjuku-ku, Tokyo, Apartment 101"
phone_number = "090-1234-5678"
payment_method = "Credit Card"
card_type = "VISA"
card_last4 = "1234"
Output (TOML, complex case):
items = '[{"name": "A", "qty": 2}, {"name": "B", "qty": 5}]'
addresses = '[{"city": "Tokyo", "zip": "160-0022"}, {"city": "Osaka", "zip": "530-0001"}]'
Note: Arrays of objects or nested structures are stored as JSON strings in TOML.
extract_jsoninput_text (string): Input string containing noisy or unstructured data.{ "success": True, "result": ... } or { "success": False, "error": ... }{
"success": true,
"result": { "foo": 1, "bar": "baz" }
}
extract_yamlinput_text (string): Input string containing noisy or unstructured data.{ "success": True, "result": ... } or { "success": False, "error": ... }{
"success": true,
"result": "foo: 1\nbar: baz"
}
extract_tomlinput_text (string): Input string containing noisy or unstructured data.{ "success": True, "result": ... } or { "success": False, "error": ... }{
"success": true,
"result": "foo = 1\nbar = \"baz\""
}
env). The server starts and lists its tools without the key, but every tool call returns {"success": false, "error": "OPENAI_API_KEY is not set. ..."} until it is provided.python server.py
In case you want to run the server manually.
When running this MCP Server, you must explicitly specify the log output mode and (if enabled) the absolute log file path via command-line arguments.
--log=off : Disable all logging (no logs are written)--log=on --logfile=/absolute/path/to/logfile.log : Enable logging and write logs to the specified absolute file path"kv-extractor-mcp-server": {
"command": "pipx",
"args": ["run", "kv-extractor-mcp-server", "--log=off"],
"env": {
"OPENAI_API_KEY": "{apikey}"
}
}
~/.codex/config.toml, via uvx)[mcp_servers.kv-extractor-mcp-server]
command = "uvx"
args = ["kv-extractor-mcp-server==0.3.3", "--log=off"]
[mcp_servers.kv-extractor-mcp-server.env]
OPENAI_API_KEY = "{apikey}"
"kv-extractor-mcp-server": {
"command": "pipx",
"args": ["run", "kv-extractor-mcp-server", "--log=on", "--logfile=/workspace/logs/kv-extractor-mcp-server.log"],
"env": {
"OPENAI_API_KEY": "{apikey}"
}
}
Note:
- When logging is enabled, logs are written only to the specified absolute file path. Relative paths or omission of
--logfilewill cause an error.- When logging is disabled, no logs are output.
- stdout is reserved for the MCP JSON-RPC stream. Diagnostics (startup messages, the log stream when
--log=on) are written to stderr, so they never break the MCP host's transport.- If the required arguments are missing or invalid, the server will not start and will print an error message.
- The log file must be accessible and writable by the MCP Server process.
- If you have trouble to run this server, it may be due to caching older version of kv-extractor-mcp-server. Please try to run it with the latest version (set
x.y.zto the latest version) of kv-extractor-mcp-server by the below setting.
"kv-extractor-mcp-server": {
"command": "pipx",
"args": ["run", "kv-extractor-mcp-server==x.y.z", "--log=off"],
"env": {
"OPENAI_API_KEY": "{apikey}"
}
}
GPL-3.0-or-later
KunihiroS (and contributors)
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for Flexible Key-Value Extracting MCP Server from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/key-value-extractor)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。
尚无已审核的包 / 镜像标识,暂不展示下载统计。
Alternative and complementary servers in the same category

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.