Q1 Crafter MCP
Academic Research MCP Server for Claude Desktop
Installation
npx q1-crafter-mcpAsk AI about Q1 Crafter MCP
Powered by Claude Β· Grounded in docs
I know everything about Q1 Crafter MCP. Ask me about installation, configuration, usage, or troubleshooting.
0/500
Reviews
Documentation
π Q1 Crafter MCP
Academic Research MCP Server for Claude Desktop
Automates the full research cycle β from source discovery across 18 databases
to Q1-quality, APA 7-formatted .docx output.
Features β’ Quick Start β’ Claude Desktop β’ Tools β’ Sources β’ Contributing
β¨ Features
| Category | Highlights |
|---|---|
| π Multi-Source Search | Query 18 academic APIs in parallel with smart field-based routing |
| π Intelligent Dedup | Two-phase deduplication: exact DOI match β fuzzy title (92% Levenshtein) |
| πΉπ· Turkish Sources | Native support for TR Dizin, DergiPark (OAI-PMH), YΓK Tez Merkezi |
| π Literature Analysis | Gap detection, keyword extraction (TF-IDF), citation validation |
| π Visualizations | Publication trends, source distribution, citation network (Mermaid) |
| π APA 7 Engine | Full citation formatter β handles 1/2/3+/20+ author rules, DOI formatting |
| π DOCX Generator | One-click manuscript generation with title page, sections, references |
| β‘ Zero Config | Free sources work instantly; paid APIs activate when keys are provided |
π Quick Start
Installation
pip install q1-crafter-mcp
Configuration
# Copy the example env file
cp .env.example .env
# Add your API keys (optional β free sources work without any keys!)
# Edit .env and fill in the keys you have
Run
q1-crafter-mcp
π₯οΈ Claude Desktop Setup
Add to your Claude Desktop configuration file:
π Windows β %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"q1-crafter": {
"command": "python",
"args": ["-m", "q1_crafter_mcp.server"],
"env": {
"SCOPUS_API_KEY": "your-scopus-key",
"IEEE_API_KEY": "your-ieee-key",
"SPRINGER_API_KEY": "your-springer-key",
"NCBI_API_KEY": "your-pubmed-key",
"UNPAYWALL_EMAIL": "your-email@example.com"
}
}
}
}
π macOS / Linux β ~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"q1-crafter": {
"command": "python3",
"args": ["-m", "q1_crafter_mcp.server"],
"env": {
"SCOPUS_API_KEY": "your-scopus-key",
"IEEE_API_KEY": "your-ieee-key",
"SPRINGER_API_KEY": "your-springer-key"
}
}
}
}
π‘ Tip: You don't need all API keys! Free sources (arXiv, CrossRef, OpenAlex, PubMed, etc.) work out of the box. Add paid keys to unlock more databases.
π§ Troubleshooting
β ENOENT error: spawn q1-crafter-mcp ENOENT
This means Claude Desktop can't find the executable. This is common on Windows because pip install puts scripts in a user directory that isn't in Claude Desktop's PATH.
Fix: Use python -m instead of the direct command (already shown in the config above). Make sure you're using:
"command": "python",
"args": ["-m", "q1_crafter_mcp.server"]
Alternative fix: Use the full path to the executable:
# Find where it's installed:
pip show q1-crafter-mcp
# Look at the "Location" field, then the Scripts folder next to it
# Example: C:\Users\YourName\AppData\Roaming\Python\Python313\Scripts\q1-crafter-mcp.exe
Then use that full path in your config:
"command": "C:\\Users\\YourName\\AppData\\Roaming\\Python\\Python313\\Scripts\\q1-crafter-mcp.exe"
β Server disconnected immediately
Check that the package is installed correctly:
python -m q1_crafter_mcp.server
If you get an import error, reinstall:
pip install --force-reinstall q1-crafter-mcp
β No search results returned
- Free sources (arXiv, CrossRef, OpenAlex) work without API keys
- If you added API keys, verify they are correct in your Claude Desktop config
- Run
check_api_statustool in Claude to see which sources are available
π Available Tools
π Search Tools
| Tool | Description |
|---|---|
search_academic | Search up to 18 databases in parallel with smart routing |
search_by_doi | Look up any paper by its DOI |
search_citations | Find all papers that cite a given work |
search_references | Get the reference list of a paper |
π Analysis Tools
| Tool | Description |
|---|---|
analyze_literature | Identify research gaps, themes, trends, and top-cited papers |
validate_citations | Bidirectional check: in-text citations β reference list |
extract_keywords | TF-IDF keyword extraction with bigram support |
π Visualization Tools
| Tool | Description |
|---|---|
generate_comparison_table | Paper comparison tables (Markdown, CSV, APA format) |
generate_trend_chart | Publication trend charts (base64 PNG, dark theme) |
generate_citation_network | Citation network visualization (Mermaid diagram) |
π Output Tools
| Tool | Description |
|---|---|
write_section | Academic section scaffolding with IMRaD templates |
format_references_apa7 | APA 7th edition reference list formatter |
build_docx | Generate formatted .docx manuscript |
check_api_status | Check which API sources are available |
π Supported Sources
| π Free (No Key) | π Free (Key Required) | ποΈ Institutional | πΉπ· Turkish |
|---|---|---|---|
|
|
|
|
π Architecture
q1-crafter-mcp/
βββ src/q1_crafter_mcp/
β βββ server.py # MCP server + 14 tool registrations
β βββ config.py # Settings & API key management
β βββ models.py # Pydantic data models
β βββ tools/
β βββ search/ # 18 API clients + aggregator + dedup
β βββ analysis/ # Gap analyzer, keywords, summarizer
β βββ visualization/ # Charts, tables, citation network
β βββ output/ # APA formatter, section writer, DOCX
βββ tests/ # 120 unit tests
βββ pyproject.toml
βββ .env.example
How It Works
graph LR
A[Claude Desktop] -->|MCP| B[Q1 Crafter Server]
B --> C[π Search 18 APIs]
C --> D[π Deduplicate]
D --> E[π Analyze]
E --> F[π Visualize]
E --> G[π APA 7 Format]
G --> H[π .docx Output]
- Search β Queries up to 18 databases in parallel, routes by field (medicine β PubMed, CS β Semantic Scholar)
- Deduplicate β Removes duplicates via exact DOI + fuzzy title matching (92% threshold)
- Analyze β Identifies themes, gaps, trends, and extracts keywords
- Visualize β Generates charts, tables, and citation networks
- Format β Applies APA 7th edition rules for citations and references
- Output β Assembles everything into a formatted
.docxmanuscript
π Usage Example
Just ask Claude naturally:
π£ "Search for papers about machine learning in drug discovery from 2020-2024, analyze the results, and generate a literature review section with APA 7 citations."
Claude will automatically:
- Search across available databases
- Deduplicate and rank results
- Analyze themes and identify gaps
- Generate formatted citations
- Write a structured section with proper references
π API Key Setup
| Source | How to Get Key | Cost |
|---|---|---|
| Semantic Scholar | semanticscholar.org/product/api | Free |
| PubMed (NCBI) | ncbi.nlm.nih.gov/account | Free |
| CORE | core.ac.uk/services/api | Free |
| Scopus | dev.elsevier.com | Institutional |
| IEEE Xplore | developer.ieee.org | Paid |
| Springer | dev.springernature.com | Free tier |
| Dimensions | dimensions.ai | Free for research |
π§ͺ Development
# Clone the repo
git clone https://github.com/ZaEyAsa/q1-crafter-mcp.git
cd q1-crafter-mcp
# Install with dev dependencies
pip install -e ".[dev]"
# Run tests
pytest
# Lint
ruff check src/
π Test Coverage
| Module | Tests | What's Covered |
|---|---|---|
| Models | 15 | Paper, Author, SearchConfig, serialization |
| APA Formatter | 18 | In-text, references, ordering, Turkish chars |
| Config | 10 | Source availability, key management |
| Dedup | 9 | DOI match, fuzzy title, metadata richness |
| Analysis | 18 | Gap analysis, keywords, summarizer, citations |
| Visualization | 17 | Charts, tables, citation networks |
| Output | 12 | Section writer, DOCX generator |
| Search Base | 7 | Client lifecycle, safe_search |
| Total | 120 | All passing β |
π License
MIT Β© ZaEyAsa
Built with β€οΈ for researchers who deserve better tools.
If this helps your research, give it a β on GitHub!
