ptx-mcp

ptx-mcp

Provides tools to read and compare scripture text from local Paratext project folders, enabling natural-language queries for verses, chapters, books, and cross-project comparisons.

Category
访问服务器

README

ptx-mcp

MCP (Model Context Protocol) server that reads scripture text directly from local Paratext project folders (USFM files) and exposes it as tools an LLM can call.

Example prompts supported

Once the server is installed (see below), you can ask Claude natural-language questions — it picks the right tool and arguments on its own.

  • "What Paratext projects do I have available?"
  • "What books are in the WEB project?"
  • "Show me Genesis 1:1 from WEB."
  • "Get John chapter 3 from WEB."
  • "Show me the whole book of Jonah from WEB."
  • "Compare Genesis 1:1-5 in WEB and BTBK side by side."
  • "Get James 1 from WEB and BTBK together, and skip any verses that are missing in either one."
  • "Read Genesis 1:26 through 2:3 from BTBK."
  • "Does BTBK have a translation of the Gospel of John? If so, show me chapter 1."

Caveats

  • This code
    • Has only had very limited testing so far. It did work for me on Mac and Windows.
    • Has only been tested with Claude Desktop.
    • Does not support access to Paratext resource projects, e.g. RVR80.
  • In order for Claude to access this stdin MCP server, Claude must be running on the local machine, not in the cloud.
    • I think this means you must choose the 'Chat' option and NOT the 'Cowork' option when starting the chat. The Cowork option seems to (at least sometimes?) run in a cloud sandbox that does not have access to the local machine.

Requirements

  • Node.js 18+
    • I think this is automatically installed when you install Claude Desktop
  • One or more Paratext project folders on disk (each containing a Settings.xml and USFM book files)

Setup/Installation

In Claude Desktop

  • Click button with your name in the bottom left corner
  • Click 'Settings'
  • Click 'Developers'
  • Click 'Edit Config'
  • Double click 'claude_desktop_config.json' to open editor

Edit 'claude_desktop_config.json' to add server as follows

{
  "mcpServers": {
    "ptx-mcp": {
      "command": "npx",
      "args": ["-y", "@milesnl/ptx-mcp"]
    }
  }
  ...
}

IMPORTANT! Close and restart Claude to load the new MCP server.

The ptx-mcp package will be automatically downloaded from the NPM library the first time you give a Paratext related command to Claude.

To test installation ask Claude: "List Paratext projects"

Installation Troubleshooting

  • Go to command line and try 'npx -y @milesnl/ptx-mcp'
    • Successful outcome is runs and then waits for terminal input. Control C to terminate. If it prints error messages instead, there is some reason we cannot access the @milesn/ptx-mcp NPM package.
  • After restarting Claude, go to Settings/Developers. This should show ptx-mcp as a Local MCP Server. If not something went wrong with loading.
  • If says "ptx-mcp failed", click "View Logs" to see why.

Installation Notes

If your My Paratext folder is not at the default location, C:\My Paratext 9 Projects, you will need to modify "args" to include that location.

      "args": ["-y", "@milesnl/ptx-mcp", "/path/to/My Paratext 9 Projects"]

To run ptx-mcp from source in development mode

To run from locally installed source

  • cd /path/to/source
  • git clone https://github.com/Nathan22Miles/PtxMCP
  • cd PtxMCP
  • npm install

Add to your MCP client's config (e.g. claude_desktop_config.json).

"mcpServers": {
    "ptx-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "/path/to/PtxMCP"
      ]
    }
  }

If you don't have Paratext installed, you can add '/path/to/source/PtxMCP/myParatextProjects' to args. This provides access to WEB project.

MCP Supported Commands

Note: In most cases you do not need to know these low level commands. Claude automatically translates your requests into this format to access the MCP.

list-projects

Lists the Paratext project ids (folder names) found under the projects root.

list-books

Lists the 3-letter USFM book codes present in a given project.

  • project — project id (folder name)

get-scripture

Returns verse text for a book, chapter, or verse range from one or more projects.

  • projects — one or more project ids to fetch text from
  • book — 3-letter USFM book code (e.g. GEN, MAT, 1CO)
  • startChapter / startVerse / endChapter / endVerse — optional; omit all four for the whole book, omit verses for a whole chapter, or specify a full range (which may span chapters)
  • allowPartial — if true, silently omits missing projects/books/verses instead of returning an error

Output is plain verse text only — no section headings, book titles, footnotes, or cross-references — one verse per line, formatted as BOOK CHAPTER:VERSE text.

When multiple projects are requested, each line is prefixed with the project id and verses are interleaved project-by-project:

WEB GEN 1:1 In the beginning God created the heavens and the earth.
BTBR GEN 1:1 In the beginning, when God began to create all things,

WEB GEN 1:2 The earth was formless and empty ...
BTBR GEN 1:2 the earth did not exist yet, there still was nothing...

Verse bridges in the source text (e.g. \v 6-7) are returned as a single line labeled 6-7, not duplicated per verse number.

Development

npm install
npm run build   # compile TypeScript to dist/
npm test        # run the Vitest suite (uses the myParatextProjects/ fixture data)

Tests read Paratext project data from the myParatextProjects/ folder.

Acknowledgements

Special thanks to unfoldingWord for usfm-js, the USFM parser this project relies on.

To Do

  • Provide auto install, e.g. 'npx @milesnl/ptx-mcp --install'
  • Try out with Gemini CLI etc.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选