M
MCP Server -- Read Papers in the local Specified Directory
リモートMCP Server -- Read Papers in the local Specified Directory について
指定したローカルディレクトリ内のPDF論文を扱うGo製MCPサーバーです。MCPクライアントからローカルの論文を検索・閲覧したい場合に使え、起動時に対象ディレクトリを指定します。
主な機能
- 01ローカルPDFディレクトリの指定
- 02ディレクトリ内の論文検索
- 03PDF内容の読み取り
- 04SSEによるサービス提供
活用シーン
- 01ローカル論文ファイルの一覧表示
- 02ファイル名による論文の検索
- 03MCPクライアントからの論文内容の読み取り
MCP 対応
指定ディレクトリ内のPDF論文を検索・閲覧するため、`find_pdf` と `read_pdf` ツールをMCPクライアントに提供します。
設定
リモートサーバーはインストール不要です。クライアントを選んで設定をコピーするか、ワンクリックで導入できます。
エンドポイント
http://127.0.0.1:8080/sseインストールコマンドをコピー
Claude CodeTerminal
claude mcp add --transport http pdf http://127.0.0.1:8080/sseCursor.cursor/mcp.json
{"mcpServers":{"pdf":{"type":"http","url":"http://127.0.0.1:8080/sse"}}}Cursor で開くVS Code.vscode/mcp.json
{"servers":{"pdf":{"type":"http","url":"http://127.0.0.1:8080/sse"}}}VS Code で開くClaude Desktopclaude_desktop_config.json
{"mcpServers":{"pdf":{"type":"http","url":"http://127.0.0.1:8080/sse"}}}Windsurf~/.codeium/windsurf/mcp_config.json
{"mcpServers":{"pdf":{"serverUrl":"http://127.0.0.1:8080/sse"}}}コマンドはターミナルで実行し、JSON は各クライアントの MCP 設定に貼り付けて再起動します。認可が必要なサーバーは初回接続時にログインを求めます。
ツール
詳細
MCP サーバー -- 指定したローカルディレクトリ内の論文を読む
コンパイル
go build -o pdf-mcp-server main.go
インストール
pdf-mcp-server バイナリが配置されているパスを環境変数に追加します。
macOS を例にします。
export PATH=$PATH:/your/path/pdf-mcp-server
source ~/.zshrc
MCP サーバーを起動する
pdf-mcp-server -pdfdir=your_paper_directory
For example: pdf-mcp-server -pdfdir=/Users/sirix/lunwen
Cursor の設定
{
"mcpServers": {
"pdf-mcp-server": {
"url": "http://127.0.0.1:8080/sse"
}
}
}
Cursor のルールを設定する
例:
When handling PDF-related requests, call the find_pdf tool of the mcp server named "pdf-mcp-server" to list all papers in the /Users/sirix/lunwen directory, search for the paper with the corresponding file name in this directory, and use the read_pdf tool of the pdf-mcp-server to read it.
コメント
Markdown 対応
AI アプリケーションが外部のツールやデータソースに統一的な方法で接続するためのオープンなプロトコルです。クライアントはモデルとの対話を担い、MCP サーバーはツール・リソース・プロンプトテンプレートを提供します。標準メッセージでやり取りするため、1 つのサーバーを複数のクライアントで再利用できます。