Neurolinker MCP Server
README.md
# Neurolinker MCP Server
Model Context Protocol (MCP) server for Neurolinker - AI-powered PDF document processing with advanced extraction, analysis, and structured output generation.
**Compatible with:** Claude, ChatGPT, Mistral, and any MCP-compatible AI client.
## Quick Start
Choose your preferred setup:
### 🌐 Option 1: Use Our Hosted Service (Easiest)
Connect directly to our cloud MCP server - **zero installation required**.
Simply add this URL to your MCP-compatible AI client:
```
https://neurolinker.mcp.ainexxo.com/mcp
```
**That's it!** The MCP server will handle authentication and connect you to Neurolinker's processing pipeline.
---
### 💻 Option 2: Run Locally
Run the MCP server on your own machine.
#### 1. Installation
```bash
# Clone the repository
git clone https://github.com/ainexxo-master/neurolinker-mcp.git
cd neurolinker-mcp/mcp_server
# Install dependencies
pip install -e .
```
#### 2. Get API Key
Sign up at [neurolinker.com](https://neurolinker.ainexxo.com) and generate an API key (starts with `nl_`).
#### 3. Create `.env` File
Copy `.env.example` to `.env` and add your API key:
```bash
cp .env.example .env
```
Edit `.env`:
```env
API_BASE_URL=https://neurolinker.api.ainexxo.com/v1/mcp
NEUROLINKER_API_KEY=nl_your_api_key_here
MCP_TRANSPORT=stdio
```
#### 4. Configure Your AI Client
**For Claude Desktop**, edit `claude_desktop_config.json`:
**Standard setup:**
```json
{
"mcpServers": {
"neurolinker": {
"command": "python",
"args": ["-m", "mcp_server.server"]
}
}
}
```
**WSL users:**
```json
{
"mcpServers": {
"neurolinker": {
"command": "wsl",
"args": [
"-e", "bash", "-c",
"cd /path/to/neurolinker-mcp && source .venv/bin/activate && python -m mcp_server.server"
]
}
}
}
```
#### 5. Restart Claude Desktop
---
## Available Tools
The MCP server provides these tools to your client:
| Tool | Description |
|------|-------------|
| `process_pdfs` | Start processing one or more PDFs (local paths or URLs) |
| `check_request_status` | Check overall job status and progress |
| `check_document_status` | Get detailed status for a specific document |
| `list_processing_tasks` | List all your processing requests |
| `get_documents_json` | Retrieve structured JSON extraction results |
| `get_documents_markdown` | Get markdown text extraction |
| `get_documents_images` | Get all extracted images (PNG) |
| `get_documents_page_summaries` | Get per-page summaries |
| `get_documents_summary` | Get high-level document summary (`summary_type`: `page` or `section`) |
| `get_documents_section_summaries` | Get per-section summaries |
| `create_pdf` | Generate PDF from markdown with image embedding |
| `make_zip` | Create a ZIP archive of request results |
---
## Example Workflow
**Processing a PDF:**
Local file (self-hosted only):
```
User: "Process this PDF: /path/to/document.pdf"
Client: Processing started! The time required depends on the size and
complexity of the PDF. You can ask me about the status to check progress.
```
Or from a URL:
```
User: "Process this PDF: https://example.com/document.pdf"
Client: Processing started! The time required depends on the size and
complexity of the PDF. You can ask me about the status to check progress.
```
**Checking Status:**
```
User: "What's the status?"
Client: Your document is being processed. Status: processing (2/5 documents complete)
```
**Getting Results:**
```
User: "Show me the extracted text"
Client: Here's the markdown extraction:
[provides download link and shows data]
User: "Get me the JSON data"
Client: Here's the structured JSON with all extracted elements:
[provides download link and shows data]
User: "Show me the images"
Client: Found 12 extracted images:
- figure_1.png [link]
- table_2.png [link]
...
```
**Creating Output:**
```
User: "Create a summary PDF from the extracted content"
Client: Generated PDF
Download: [provides link to generated PDF]
```
---
## Features
- **Smart Extraction**: Text, tables, images, and structured data
- **Multiple Formats**: JSON, Markdown, PNG images
- **AI Summaries**: Page-level and document-level summaries
- **PDF Generation**: Create new PDFs from extracted content
- **Flexible Input**: Local files and URLs supported
- **Secure**: User-isolated processing with authentication
---
## License
MIT License - see [LICENSE](LICENSE) file for details.