这是一个MCP(Model Communication Protocol)工具,用于帮助解析各种格式的文档(PDF、Word、Excel、PPT等)获取其内容。该工具提供了简单易用的接口,使您能够在各种应用中集成文档解析功能。
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add document-parse-tool --env NIUTRANS_API_KEY='<NIUTRANS_API_KEY>' --env NIUTRANS_DOCUMENT_APPID='<NIUTRANS_DOCUMENT_APPID>' -- uv tool run mcp-document-parse~/.codex/config.toml
[mcp_servers.document-parse-tool]
command = "uv"
args = ["tool", "run", "mcp-document-parse"]
env = { NIUTRANS_API_KEY = "<NIUTRANS_API_KEY>", NIUTRANS_DOCUMENT_APPID = "<NIUTRANS_DOCUMENT_APPID>" }
# codex mcp add document-parse-tool --env NIUTRANS_API_KEY='<NIUTRANS_API_KEY>' --env NIUTRANS_DOCUMENT_APPID='<NIUTRANS_DOCUMENT_APPID>' -- uv tool run mcp-document-parse~/.cursor/mcp.json
{
"mcpServers": {
"document-parse-tool": {
"command": "uv",
"args": [
"tool",
"run",
"mcp-document-parse"
],
"env": {
"NIUTRANS_API_KEY": "<NIUTRANS_API_KEY>",
"NIUTRANS_DOCUMENT_APPID": "<NIUTRANS_DOCUMENT_APPID>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"document-parse-tool": {
"type": "stdio",
"command": "uv",
"args": [
"tool",
"run",
"mcp-document-parse"
],
"env": {
"NIUTRANS_API_KEY": "<NIUTRANS_API_KEY>",
"NIUTRANS_DOCUMENT_APPID": "<NIUTRANS_DOCUMENT_APPID>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"document-parse-tool": {
"command": "uv",
"args": [
"tool",
"run",
"mcp-document-parse"
],
"env": {
"NIUTRANS_API_KEY": "<NIUTRANS_API_KEY>",
"NIUTRANS_DOCUMENT_APPID": "<NIUTRANS_DOCUMENT_APPID>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"document-parse-tool": {
"command": "uv",
"args": [
"tool",
"run",
"mcp-document-parse"
],
"env": {
"NIUTRANS_API_KEY": "<NIUTRANS_API_KEY>",
"NIUTRANS_DOCUMENT_APPID": "<NIUTRANS_DOCUMENT_APPID>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"document-parse-tool": {
"command": "uv",
"args": [
"tool",
"run",
"mcp-document-parse"
],
"env": {
"NIUTRANS_API_KEY": "<NIUTRANS_API_KEY>",
"NIUTRANS_DOCUMENT_APPID": "<NIUTRANS_DOCUMENT_APPID>"
}
}
}
}Environment variables
NIUTRANS_API_KEYNIUTRANS_DOCUMENT_APPID
Replace the placeholders with your own credentials and keep them out of version control.