MCP Access 内容提取与自动化工具
启用从网页和PDF中提取文本以及执行预定义命令的功能,从而增强内容处理和自动化能力。
可用工具 (3 个)
该服务在 MCP 协议中暴露的工具,AI 可按需调用
get-webpage-markdown 1 个参数 需填 1 项
Parses a web page into Markdown and returns it
必填参数:url
get-pdf-content 1 个参数 需填 1 项
Text parsing and return of PDF content
必填参数:pdfFilePath
command-execute 2 个参数 需填 2 项
Executes a command in the allowed list: ls / mkdir / cd / npm / npx / node / git / rm
必填参数:command、cwd
服务介绍
MCP 访问模板
个人使用的工具
之前: nodejs -> deno
设置
{
"mcpServers": {
"mcp-access-deno": {
"command": "deno", // OR full-path
"args": ["run", "-A", "PROJEC_DIR/src/index.ts"],
"env": {}
}
}
}
工具
列表
commandExecute- 在允许的列表中执行一个命令
getUrlToMd- 将网页解析为 Markdown 并返回
getPdfContent- 文本解析并返回 PDF 内容
库
createToolsServer
MCP 检查器
MCP 检查器是用于测试和调试 MCP 服务器的开发者工具。
$ npx @modelcontextprotocol/inspector deno run -A src/index.ts
故障排除
解决方案
pdfjs-dist
如何移除
Warning: Please use thelegacybuild in Node.js environments.(因为这个控制台消息会阻碍 MCP 启动)
// if (isNodeJS) {
// warn("Please use the `legacy` build in Node.js environments.");
// }
本地执行
# start locally
$ deno run -A src/index.ts
# exec
$ {"jsonrpc":"2.0","id":"toolcall-1","method":"tools/call","params":{"name":"getUrlToMd","arguments":{"url":"https://code.visualstudio.com/docs/editing/intellisense"}}}
# ---
# start locally + exec + save result
$ echo '{"jsonrpc":"2.0","id":"toolcall-1","method":"tools/call","params":{"name":"getUrlToMd","arguments":{"url":"https://code.visualstudio.com/docs/editing/intellisense"}}}' | \
deno run -A src/index.ts | \
grep "result" | \
jq -r '.result.content[0].text | fromjson' > example.md