Skip to main content
Glama
Q1 Crafter MCP

Q1 Crafter MCP

by muslus

✨ 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


Related MCP server: research-automation-mcp-server

šŸš€ 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:

{
  "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"
      }
    }
  }
}
{
  "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

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"

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
  • 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_status tool 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

  • arXiv

  • CrossRef

  • OpenAlex

  • Europe PMC

  • DOAJ

  • BASE

  • Semantic Scholar

  • PubMed (NCBI)

  • CORE

  • Unpaywall

  • Scopus (Elsevier)

  • Web of Science

  • IEEE Xplore

  • Springer Nature

  • ScienceDirect

  • Dimensions

  • TR Dizin

  • DergiPark (OAI-PMH)

  • YƖK Tez Merkezi


šŸ— 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]
  1. Search — Queries up to 18 databases in parallel, routes by field (medicine → PubMed, CS → Semantic Scholar)

  2. Deduplicate — Removes duplicates via exact DOI + fuzzy title matching (92% threshold)

  3. Analyze — Identifies themes, gaps, trends, and extracts keywords

  4. Visualize — Generates charts, tables, and citation networks

  5. Format — Applies APA 7th edition rules for citations and references

  6. Output — Assembles everything into a formatted .docx manuscript


šŸ“– 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:

  1. Search across available databases

  2. Deduplicate and rank results

  3. Analyze themes and identify gaps

  4. Generate formatted citations

  5. 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


Available Tools

14 tools
analyze_literatureB

Analyze a collection of papers to identify research gaps, main themes, methodological trends, temporal patterns, and controversial topics.

Inputs: paper_ids (required).

build_docxA

Assemble all sections, figures, tables, and references into a final .docx manuscript. Uses Times New Roman 12pt, double spacing, 1-inch margins (APA standard). Performs quality checks before output.

Inputs: manuscript (required), output_filename.

check_api_statusA

Check which academic API sources are currently configured and available. Shows which APIs have valid keys and which require setup.

Inputs: no named parameters.

extract_keywordsB

Extract key terms and concepts from paper abstracts using TF-IDF and co-occurrence analysis.

Inputs: paper_ids (required), max_keywords.

format_references_apa7B

Format a list of papers into APA 7th Edition reference list entries. Handles all author-count rules, DOI formatting, italics, and alphabetical ordering.

Inputs: paper_ids (required).

generate_citation_networkA

Visualize the citation network as a directed graph. Node size = citation count, color = year. Top 10 most influential nodes are labeled. Outputs PNG.

Inputs: paper_ids (required).

generate_comparison_tableA

Create a comparison table of selected papers across specified dimensions (e.g., method, sample size, findings). Outputs a PNG image.

Inputs: paper_ids (required), columns.

generate_trend_chartA

Generate publication trend charts — yearly counts, citation distributions, source breakdown, and journal quartile distribution. Outputs PNG images.

Inputs: paper_ids (required), chart_type.

search_academicA

Search across 15+ academic databases in parallel. Returns deduplicated papers with metadata, DOIs, citations, and open access info. Supports year filtering, field selection, and language preferences.

Inputs: query (required), max_results, year_from, year_to, +4 more.

search_by_doiA

Look up a single paper by its DOI. Returns full metadata from CrossRef, Unpaywall, and other sources.

Inputs: doi (required).

search_citationsB

Find papers that cite a given paper (backward citation tracking). Useful for tracing research impact.

Inputs: paper_id (required), max_results.

search_referencesB

Get the reference list of a given paper (forward citation tracking). Shows what papers the given paper cites.

Inputs: paper_id (required), max_results.

validate_citationsA

Bidirectional validation between in-text citations and the references list. Detects orphan citations, missing references, malformed entries, and DOI issues.

Inputs: text (required), references (required).

write_sectionC

Write a specific section of the manuscript in formal academic style with proper in-text citations. Sections: introduction, literature_review, methodology, results, discussion, conclusion.

Inputs: section (required), paper_ids (required), instructions, word_count_target, +1 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.8/5.0

    Scored across 14 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose covering different aspects of academic research and manuscript creation. There is no overlap or ambiguity between tools like search_academic, search_by_doi, search_citations, and search_references.

    Naming Consistency5/5

    All 14 tools follow a consistent verb_noun naming pattern (e.g., analyze_literature, build_docx, validate_citations), making it easy to infer functionality from the name.

    Tool Count5/5

    14 tools are well-scoped for the server's purpose of academic literature analysis and manuscript generation. Each tool contributes meaningfully without being excessive or insufficient.

    Completeness5/5

    The tool set covers the full workflow: searching literature, analyzing trends, generating visualizations, writing sections, formatting references, building final document, and validating citations. No obvious gaps are present.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    Appeared in Searches