AI4Scholar Codex Plugin

May 19, 2026 · View on GitHub

AI4Scholar Logo

AI4Scholar Codex Plugin

English | 中文

A Codex plugin that brings academic paper search, reading, citation analysis, auto-citation, and AI scientific figure generation into OpenAI Codex.

Powered by ai4scholar-mcp — 28 tools across arXiv, PubMed, Semantic Scholar, bioRxiv, medRxiv, and Google Scholar.

License


Quick Start (3 Steps)

Prerequisites

  • An AI4Scholar API key from ai4scholar.net
  • No Python installation required — the plugin connects to the hosted remote server

Step 1: Add Marketplace

In Codex, add the plugin marketplace. You can either:

  • Use the Codex UI: Settings → Plugins → Add Marketplace → paste https://github.com/literaf/ai4scholar-plugin-codex.git
  • Or manually add to ~/.codex/config.toml:
[marketplaces.ai4scholar-plugins]
source_type = "git"
source = "https://github.com/literaf/ai4scholar-plugin-codex.git"

Step 2: Enable the Plugin

Enable it via Codex UI (Settings → Plugins → AI4Scholar → Enable), or add to ~/.codex/config.toml:

[plugins."ai4scholar@ai4scholar-plugins"]
enabled = true

Step 3: Configure Your API Key

Add your API key to ~/.codex/config.toml:

[plugins."ai4scholar@ai4scholar-plugins".mcp_servers.ai4scholar]
enabled = true
default_tools_approval_mode = "auto"

[plugins."ai4scholar@ai4scholar-plugins".mcp_servers.ai4scholar.env]
AI4SCHOLAR_API_KEY = "sk-user-your-api-key-here"

Then restart Codex. The plugin will appear in /plugins and you can use @ai4scholar to invoke it.


Skills

SkillDescription
paper-searchSearch papers across 6 platforms with year/date/author filtering
paper-readingDownload PDFs and extract full text for summarization
citation-analysisExplore citation graphs, author networks, and get recommendations
auto-citeAutomatically annotate academic text with citations and references
nano-drawGenerate, edit, and vectorize scientific figures with AI

Tools (28)

PlatformToolsCapabilities
arXivsearch_arxiv, download_arxiv, read_arxiv_paperSearch, download PDF, extract text
PubMedsearch_pubmed, get_pubmed_paper_detail, get_pubmed_citations, get_pubmed_relatedSearch, detail, citations, related
Semantic Scholarsearch_semantic, download_semantic, read_semantic_paper, get_semantic_citations, get_semantic_references, search_semantic_authors, get_semantic_author_papers, get_semantic_recommendations, get_semantic_recommendations_for_paper, search_semantic_snippetsFull citation graph and recommendations
Google Scholarsearch_google_scholarBroad search with year filtering
bioRxivsearch_biorxiv, download_biorxiv, read_biorxiv_paperBiology preprints
medRxivsearch_medrxiv, download_medrxiv, read_medrxiv_paperMedical preprints
Generaldownload_pdf_by_doiDownload any paper by DOI
Auto-Citeauto_citeAI citation annotation
Nano Drawnano_generate, nano_edit, nano_vectorizeAI figure generation and editing

Usage Examples

Search for recent papers on large language models.
Read and summarize arXiv paper 2301.00001.
What papers cite DOI:10.1038/s41586-024-07487-w?
Auto-cite my introduction paragraph with IEEE references.
Generate a diagram showing transformer architecture.

Also Works With Claude Code

claude mcp add ai4scholar --transport sse --url https://mcp.ai4scholar.net/sse --header "Authorization: Bearer <your-api-key>"

License

MIT License. See LICENSE for details.