MCP.so
登录
F

Flexible Key Value Extracting Mcp Server

@KunihiroS

关于 Flexible Key Value Extracting Mcp Server

暂无概览

基本信息

分类

其他

传输方式

stdio

发布者

KunihiroS

提交者

Kunihiro Sugiyama

配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "kv-extractor-mcp-server": {
      "command": "pipx",
      "args": [
        "run",
        "kv-extractor-mcp-server",
        "--log=off"
      ],
      "env": {
        "OPENAI_API_KEY": "<your-api-key>"
      }
    }
  }
}

工具

未检测到工具

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is Flexible Key Value Extracting Mcp Server?

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 Flexible Key Value Extracting Mcp Server?

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 Flexible Key Value Extracting Mcp Server

  • 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 Flexible Key Value Extracting Mcp Server

  • 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.

FAQ from Flexible Key Value Extracting Mcp Server

What languages are supported?

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

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.

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.

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.

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.

评论

其他 分类下的更多 MCP 服务器