by kunihiros
Key-Value Extractor quickly pulls structured key-value pairs from messy text like emails or receipts using advanced dete
Extracts key-value pairs from messy, unstructured text like emails or receipts using AI. Automatically discovers relevant data without needing to specify what to look for in advance.
Key-Value Extractor is a community-built MCP server published by kunihiros that provides AI assistants with tools and capabilities via the Model Context Protocol. Key-Value Extractor quickly pulls structured key-value pairs from messy text like emails or receipts using advanced dete It is categorized under ai ml, analytics data.
You can install Key-Value Extractor in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.
GPL-3.0
Key-Value Extractor is released under the GPL-3.0 license.
Add new capabilities to Claude beyond text generation
Example
Access external data sources, execute code, interact with tools and services
Transform Claude from chatbot to action-taking agent
Provide Claude with access to relevant context and data
Example
Load project documentation, access knowledge bases, query databases
Get more accurate, context-aware responses
Automate multi-step workflows combining AI and external tools
Example
Research → Summarize → Create document → Send notification
Complete complex tasks end-to-end without manual steps
Share your MCP server with the developer community
Key-Value Extractor is a well-scoped MCP server in the explainx.ai directory — install snippets and categories matched our Claude Code setup.
I recommend Key-Value Extractor for teams standardizing on MCP; the explainx.ai page compares cleanly with sibling servers.
According to our notes, Key-Value Extractor benefits from clear Model Context Protocol framing — fewer ambiguous “AI plugin” claims.
Key-Value Extractor is among the better-indexed MCP projects we tried; the explainx.ai summary tracks the official description.
Strong directory entry: Key-Value Extractor surfaces stars and publisher context so we could sanity-check maintenance before adopting.
Key-Value Extractor is among the better-indexed MCP projects we tried; the explainx.ai summary tracks the official description.
According to our notes, Key-Value Extractor benefits from clear Model Context Protocol framing — fewer ambiguous “AI plugin” claims.
We wired Key-Value Extractor into a staging workspace; the listing’s GitHub and npm pointers saved time versus hunting across READMEs.
We evaluated Key-Value Extractor against two servers with overlapping tools; this profile had the clearer scope statement.
Useful MCP listing: Key-Value Extractor is the kind of server we cite when onboarding engineers to host + tool permissions.
showing 1-10 of 48
Version: 0.3.2
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:
/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.
Prerequisites
Time Estimate
15-60 minutes depending on server complexity
Steps
Troubleshooting
✓ Do
✗ Don't
💡 Pro Tips
Architecture
Model Context Protocol standardizes how AI hosts (Claude, Cursor) communicate with external tools and data sources through server implementations.
Protocols
Compatibility
✓ Use when
Use when you need Claude to access external data, execute actions, or integrate with tools. Best for extending AI capabilities beyond conversation.
✗ Avoid when
Avoid when native integrations exist (use official APIs directly), for real-time critical systems, or when security/compliance requires zero external dependencies.