doc2json
Turn PDFs and photos into typed JSON with your own schema. Missing values come back null.
我該用這個嗎
品質與安全性
發現項目(1)
- LOW在 whoami 中
根據工具定義與協定合規性的自動化分析。
上下文成本
這是每次將伺服器的工具載入模型上下文時所消耗的約略 token 數量。數量越高,可用於其他工作的注意力就越少。
安裝
一鍵安裝
將以下內容加入你的 `claude_desktop_config.json` 檔案:
{
"mcpServers": {
"doc2json": {
"url": "https://doc2json.manoonlabs.com/mcp"
}
}
}遠端端點
https://doc2json.manoonlabs.com/mcpstreamable-http它能做什麼
工具清單
工具(6)
⚪whoami
Return the workspace and token for the bearer credential, and the credits left this month.
輸入結構描述
{
"type": "object",
"properties": {},
"additionalProperties": false
}🟡parse_document(schema, file_base64, text, citations)
Extract invoice fields from a PDF, PNG, JPEG, or text file sent as base64 in file_base64, or from plain text sent in text (10 MB and 10 pages on Free, 25 MB and 50 pages on paid). 1 credit per page; an image is 1 page; text is 1 credit per 3,000 characters. Nothing is stored. Send exactly one of file_base64 or text. The result has status and values. Set citations to true to also get, for each value, the page, the printed text, and a box where it was read.
輸入結構描述
{
"type": "object",
"properties": {
"schema": {
"description": "The name of a schema saved in this workspace, or a literal schema object. A schema is {\"type\":\"object\",\"properties\":{...}}. Each property is {\"type\":T} where T is one of any, null, boolean, string, number, date, array, object. An optional description, at most 400 characters, tells the model how to read that field. An optional required array lists the keys that must be present. A date is a string yyyy-mm-dd. An array adds \"items\" (one node). An object adds \"properties\" and may add \"required\". At most 4 levels below the root, 100 keys, and 16384 bytes.",
"oneOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 80,
"pattern": "^[a-z0-9_-]+$",
"description": "Lowercase letters, digits, underscores, and hyphens. No spaces."
},
{
"type": "object",
"description": "A schema is {\"type\":\"object\",\"properties\":{...}}. Each property is {\"type\":T} where T is one of any, null, boolean, string, number, date, array, object. An optional description, at most 400 characters, tells the model how to read that field. An optional required array lists the keys that must be present. A date is a string yyyy-mm-dd. An array adds \"items\" (one node). An object adds \"properties\" and may add \"required\". At most 4 levels below the root, 100 keys, and 16384 bytes."
}
]
},
"file_base64": {
"type": "string",
"description": "Base64-encoded PDF, PNG, JPEG, or UTF-8 text file (.txt, .md, .csv, .eml). At most 10 MB and 10 pages on Free, 25 MB and 50 pages on paid plans. Each page costs 1 credit; an image is 1 page; text is 1 credit per 3,000 characters. The bytes are not stored. Send this or text, not both."
},
"text": {
"type": "string",
"description": "The document as plain text, for example a pasted invoice or email. 1 credit per 3,000 characters (started), at least 1. At most 30,000 characters on Free and 150,000 on paid plans. The text is not stored. Send this or file_base64, not both."
},
"citations": {
"type": "boolean",
"description": "When true, the result also has citations: for each value's path, the page, the printed text it was read from, a box [x0, y0, x1, y1] on the page (0 to 1 from the top left), and a status saying whether the text was found in the document. Same credits. Default false."
}
},
"additionalProperties": false
}🟢list_schemas
List the extraction schemas saved in this workspace.
輸入結構描述
{
"type": "object",
"properties": {},
"additionalProperties": false
}🟢get_schema(name)
Read one saved extraction schema by name.
輸入結構描述
{
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 1,
"maxLength": 80,
"pattern": "^[a-z0-9_-]+$",
"description": "Lowercase letters, digits, underscores, and hyphens. No spaces."
}
},
"required": [
"name"
],
"additionalProperties": false
}🟡create_schema(name, schema)
Save a named extraction schema in this workspace. A schema is {"type":"object","properties":{...}}. Each property is {"type":T} where T is one of any, null, boolean, string, number, date, array, object. An optional description, at most 400 characters, tells the model how to read that field. An optional required array lists the keys that must be present. A date is a string yyyy-mm-dd. An array adds "items" (one node). An object adds "properties" and may add "required". At most 4 levels below the root, 100 keys, and 16384 bytes.
輸入結構描述
{
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 1,
"maxLength": 80,
"pattern": "^[a-z0-9_-]+$",
"description": "Lowercase letters, digits, underscores, and hyphens. No spaces."
},
"schema": {
"type": "object",
"description": "A schema is {\"type\":\"object\",\"properties\":{...}}. Each property is {\"type\":T} where T is one of any, null, boolean, string, number, date, array, object. An optional description, at most 400 characters, tells the model how to read that field. An optional required array lists the keys that must be present. A date is a string yyyy-mm-dd. An array adds \"items\" (one node). An object adds \"properties\" and may add \"required\". At most 4 levels below the root, 100 keys, and 16384 bytes."
}
},
"required": [
"name",
"schema"
],
"additionalProperties": false
}🟡update_schema(name, newName, schema)
Rename a saved schema, replace its definition, or both. A schema is {"type":"object","properties":{...}}. Each property is {"type":T} where T is one of any, null, boolean, string, number, date, array, object. An optional description, at most 400 characters, tells the model how to read that field. An optional required array lists the keys that must be present. A date is a string yyyy-mm-dd. An array adds "items" (one node). An object adds "properties" and may add "required". At most 4 levels below the root, 100 keys, and 16384 bytes.
輸入結構描述
{
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 1,
"maxLength": 80,
"pattern": "^[a-z0-9_-]+$",
"description": "The current name."
},
"newName": {
"type": "string",
"minLength": 1,
"maxLength": 80,
"pattern": "^[a-z0-9_-]+$",
"description": "Lowercase letters, digits, underscores, and hyphens. No spaces."
},
"schema": {
"type": "object",
"description": "A schema is {\"type\":\"object\",\"properties\":{...}}. Each property is {\"type\":T} where T is one of any, null, boolean, string, number, date, array, object. An optional description, at most 400 characters, tells the model how to read that field. An optional required array lists the keys that must be present. A date is a string yyyy-mm-dd. An array adds \"items\" (one node). An object adds \"properties\" and may add \"required\". At most 4 levels below the root, 100 keys, and 16384 bytes."
}
},
"required": [
"name"
],
"additionalProperties": false
}社群
證據