Q1 Crafter Mcp

Created By
zaeyasa3 months ago
Overview

MCP Server Python APA 7 License

๐ŸŽ“ 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

CategoryHighlights
๐Ÿ” Multi-Source SearchQuery 18 academic APIs in parallel with smart field-based routing
๐Ÿ”„ Intelligent DedupTwo-phase deduplication: exact DOI match โ†’ fuzzy title (92% Levenshtein)
๐Ÿ‡น๐Ÿ‡ท Turkish SourcesNative support for TR Dizin, DergiPark (OAI-PMH), Yร–K Tez Merkezi
๐Ÿ“Š Literature AnalysisGap detection, keyword extraction (TF-IDF), citation validation
๐Ÿ“ˆ VisualizationsPublication trends, source distribution, citation network (Mermaid)
๐Ÿ“ APA 7 EngineFull citation formatter โ€” handles 1/2/3+/20+ author rules, DOI formatting
๐Ÿ“„ DOCX GeneratorOne-click manuscript generation with title page, sections, references
โšก Zero ConfigFree 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": "q1-crafter-mcp",
      "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 โ€” ~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "q1-crafter": {
      "command": "q1-crafter-mcp",
      "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.


๐Ÿ›  Available Tools

๐Ÿ” Search Tools

ToolDescription
search_academicSearch up to 18 databases in parallel with smart routing
search_by_doiLook up any paper by its DOI
search_citationsFind all papers that cite a given work
search_referencesGet the reference list of a paper

๐Ÿ“Š Analysis Tools

ToolDescription
analyze_literatureIdentify research gaps, themes, trends, and top-cited papers
validate_citationsBidirectional check: in-text citations โ†” reference list
extract_keywordsTF-IDF keyword extraction with bigram support

๐Ÿ“ˆ Visualization Tools

ToolDescription
generate_comparison_tablePaper comparison tables (Markdown, CSV, APA format)
generate_trend_chartPublication trend charts (base64 PNG, dark theme)
generate_citation_networkCitation network visualization (Mermaid diagram)

๐Ÿ“ Output Tools

ToolDescription
write_sectionAcademic section scaffolding with IMRaD templates
format_references_apa7APA 7th edition reference list formatter
build_docxGenerate formatted .docx manuscript
check_api_statusCheck which API sources are available

๐ŸŒ Supported Sources

๐Ÿ†“ Free (No Key)๐Ÿ”‘ Free (Key Required)๐Ÿ›๏ธ Institutional๐Ÿ‡น๐Ÿ‡ท Turkish
  • 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

SourceHow to Get KeyCost
Semantic Scholarsemanticscholar.org/product/apiFree
PubMed (NCBI)ncbi.nlm.nih.gov/accountFree
COREcore.ac.uk/services/apiFree
Scopusdev.elsevier.comInstitutional
IEEE Xploredeveloper.ieee.orgPaid
Springerdev.springernature.comFree tier
Dimensionsdimensions.aiFree 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

ModuleTestsWhat's Covered
Models15Paper, Author, SearchConfig, serialization
APA Formatter18In-text, references, ordering, Turkish chars
Config10Source availability, key management
Dedup9DOI match, fuzzy title, metadata richness
Analysis18Gap analysis, keywords, summarizer, citations
Visualization17Charts, tables, citation networks
Output12Section writer, DOCX generator
Search Base7Client lifecycle, safe_search
Total120All passing โœ…

๐Ÿ“„ License

MIT ยฉ ZaEyAsa


Built with โค๏ธ for researchers who deserve better tools.
If this helps your research, give it a โญ on GitHub!

Server Config

{
  "mcpServers": {
    "q1-crafter": {
      "command": "q1-crafter-mcp",
      "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"
      }
    }
  }
}
Project Info
Created At
3 months ago
Updated At
3 months ago
Author Name
zaeyasa
Star
-
Language
-
License
-
Category
Tags

Recommend Servers

View All
Payai X402 Tools

2 hours ago
Tavily Mcp
@tavily-ai

JavaScript
a year ago