TPLCP Reference MCP
Turns the 2026 CLCP orientation corpus into a searchable, citation-preserving reference source for TPLCP report work.
README
TPLCP Reference MCP
This local MCP server turns the 2026 CLCP orientation corpus into a searchable, citation-preserving reference source for TPLCP report work. It keeps source files local, preserves relative paths and SHA-256 identifiers, prioritizes current internal standards, and excludes credential-oriented files from search by default.
Data flow
- Run
tools/corpus_extract.pyagainst the orientation folder. The extractor inventories every file, hashes exact duplicates, and writesfiles.jsonlplus readable text undertexts/. - Run
build_index.pyto createtplcp_reference.sqlite3in that extraction directory. - Set
TPLCP_INDEX_DIRto the extraction directory and runserver.pyover MCP stdio.
The checked-in server is intentionally separate from the source corpus. Do not commit the extracted text cache or any source documents containing client records, credentials, or personal information.
Tools
tplcp_retrieve_for_question: preferred first step for a natural-language question. Returns a ranked evidence pack with controlling guidance first, examples second, and contextual references third.tplcp_search_reference: paged full-text search with role/module filters and source provenance.tplcp_get_reference_document: bounded, path- or SHA-256-addressed excerpts.tplcp_get_standards: highest-authority current TPLCP standards for a topic.tplcp_get_report_examples: illustrative report/template patterns.tplcp_list_modules: orientation module map.tplcp_reindex_reference: explicit local cache rebuild after a new extraction.
Skill suite
The skills/ directory contains the 15 operational TPLCP skills defined by the
reporting playbook:
tplcp-reporting-orchestratortplcp-medical-review-summarytplcp-life-care-plantplcp-medical-cost-projectiontplcp-report-writing-standardstplcp-executive-summarytplcp-clinical-recommendation-researchtplcp-standardized-assessment-interviewtplcp-coding-costing-methodologytplcp-vendor-survey-atustplcp-life-expectancytplcp-rebuttal-analysistplcp-deposition-trial-preptplcp-report-qatplcp-privacy-source-control
Each skill has a required SKILL.md and UI metadata under agents/openai.yaml.
The skills retrieve current guidance through the MCP and do not contain the
private orientation corpus.
To install the skills into a local Codex skills directory:
mkdir -p "${CODEX_HOME:-$HOME/.codex}/skills"
cp -R skills/* "${CODEX_HOME:-$HOME/.codex}/skills/"
After installation, connect the MCP server, then invoke the orchestrator or a specialized skill by name. Keep the local corpus extraction and SQLite index outside the repository.
Question behavior
For a natural-language question, use tplcp_retrieve_for_question first. The
tool makes the source hierarchy explicit:
- Current internal TPLCP standards, workflow guidance, templates, and orientation instructions are the controlling source of truth.
- TPLCP and external report examples show structure and patterns but do not override current guidance.
- Clinical, costing, testimony, and educational materials provide context and require professional judgment.
The calling model should answer from the returned excerpts, preserve source paths and page numbers as citations, and identify when the corpus does not contain enough information to answer confidently. The tool retrieves evidence; it does not make medical, legal, or case-specific conclusions.
Example MCP configuration
{
"mcpServers": {
"tplcp-reference": {
"command": "/absolute/path/to/.venv/bin/python",
"args": ["/absolute/path/to/tplcp_reference_mcp/server.py"],
"env": {
"TPLCP_INDEX_DIR": "/absolute/path/to/analysis/clcp_corpus"
}
}
}
}
Use TPLCP_INDEX_DB instead when the SQLite file is stored separately.
Local MCP client connection
The current server works locally over stdio. Configure a local MCP-capable client with:
{
"mcpServers": {
"tplcp-reference": {
"command": "/absolute/path/to/python",
"args": ["/absolute/path/to/tplcp-reference-mcp/server.py"],
"env": {
"TPLCP_INDEX_DIR": "/absolute/path/to/clcp_corpus"
}
}
}
}
ChatGPT or hosted GPT connection
Hosted ChatGPT cannot reach a process listening only on this Mac. It needs an HTTPS MCP endpoint. The recommended path for this private source of truth is OpenAI's Secure MCP Tunnel:
tunnel-client init \
--sample sample_mcp_stdio_local \
--profile tplcp-reference \
--tunnel-id <tunnel_id> \
--mcp-command "env TPLCP_INDEX_DIR='/absolute/path/to/clcp_corpus' '/absolute/path/to/python' '/absolute/path/to/tplcp-reference-mcp/server.py'"
tunnel-client doctor --profile tplcp-reference --explain
tunnel-client run --profile tplcp-reference
Then create a developer-mode app in ChatGPT, choose Tunnel, select the tunnel, scan the tools, and test it in a new chat. Keep the app read-only by allowlisting the retrieval, standards, examples, document, and module tools. Do not expose this corpus through an unauthenticated public URL.
For a directly hosted deployment, run server.py --transport streamable-http and expose only the authenticated HTTPS /mcp endpoint. The
server supports this transport, but the private tunnel is safer for source
material containing company standards and case-related references.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。