Readwise MCP 服务器是一个基于 Model Context Protocol (MCP) 的工具,可让你轻松访问并与 Readwise 图书馆进行交互,提供了丰富的功能来处理和分析信息。
Readwise MCP 服务器允许你通过 MCP 协议与 Readwise 图书馆的数据进行交互。你可以使用它获取高亮、搜索高亮、获取书籍和文档信息等。
npm install readwise-mcp-server
git clone https://github.com/your-repository.git
cd your-repository
npm install
npm run setup
npm start -- --apiKey your_api_key_here
npm start
npm run dev
npm start -- --apiKey your_api_key_here
npm start -- --debug
const { MCPServer } = require('readwise-mcp-server');
// 创建服务器实例
const server = new MCPServer({
apiKey: 'your_api_key_here'
});
// 启动服务器
server.start();
运行以下命令以执行所有测试:
npm test
npm install mcp-inspector
如果您没有 API 密钥或不想使用实际密钥进行测试,可以运行以下命令:
npm run test-mock
readwise_highlight:处理 Readwise 的高亮内容
readwise_search:搜索并处理 Readwise 中的高亮内容
git clone https://github.com/your-repository.git
cd your-repository
npm install
npm run dev
项目分为以下几个主要部分:
| 属性 | 详情 |
|---|---|
| src | 主代码库,包含服务器的核心实现。 |
| test-scripts | 测试脚本,用于自动化测试和验证功能。 |
| examples | 示例代码,展示如何使用 MCP 服务器。 |
| dist | 构建输出目录,包含编译后的文件。 |
| scripts | 启动脚本和其他开发工具。 |
该项目使用 MIT License 许可证。