Samathi101 MCP服务器
MCP(模型上下文协议)服务器 samathi101.com -意志力研究所
特性
- 搜索所有信息(FTS5全文搜索)
- 检索列表和新闻详细信息
- 检索课程/活动列表和详细信息
- 检索分支机构列表和详细信息(324个分支机构)
- 从佛法图书馆检索文章列表和详细信息
- 内存缓存+SQLite数据库
- 用
_next/dataAPI(更快的刮擦)
工具
| 工具 | 说明 |
|---|---|
search_samathi101 | 查找所有信息(FTS5) |
get_news_list | 最新新闻列表 |
get_news_detail | 来自ID的新闻详情 |
get_course_list | 课程/活动列表 |
get_course_detail | 来自ID的课程详情 |
get_branch_list | 分支列表 |
get_branch_detail | 从ID获取分支机构详细信息 |
get_article_list | 文章列表 |
get_article_detail | 来自ID的文章详情 |
get_about_institute | 机构信息 |
安装
1.克隆存储库
git clone https://github.com/monthop-gmail/samathi101-mcp-claude.git
cd samathi101-mcp-claude2.从Docker Compose开始
docker compose up -d --build3.验证
# Check status
docker compose ps
# Test health
curl http://localhost:3000/health
# View logs
docker logs -f samathi101-mcp添加到克劳德代码
# Add MCP server
claude mcp add --transport streamable-http --scope user samathi101 http://localhost:3000/mcp
# Verify connection
claude mcp list
# Remove (if needed)
claude mcp remove samathi101端点
| 端点 | 描述 |
|---|---|
http://localhost:3000/mcp | MCP的可流式HTTP端点 |
http://localhost:3000/health | 健康检查 |
配置(可选)
环境变量 docker-compose.yml:
environment:
# Cache TTL (seconds)
- CACHE_TTL_LIST=300 # List pages (5 min)
- CACHE_TTL_DETAIL=1800 # Detail pages (30 min)
- CACHE_TTL_SEARCH=600 # Search results (10 min)
# Database
- SAMATHI_DB_ENABLED=true
- SAMATHI_DB_PATH=/data/samathi101.db演出
| 场景 | 响应时间 |
|---|---|
| 缓存命中 | \<50ms |
| 数据库命中 | \<100ms |
_next/data API | 200-500ms |
许可证
麻省理工学院
