Summary
Biomedical literature from PubMed through the NCBI E-utilities, no key needed: search 40 million citations with PubMed query syntax, read summaries, abstracts and MeSH terms, follow similar and citing articles, find full-text links, convert PMID, PMCID and DOI, and read open-access full text from PubMed Central.
Guided setup
Connect PubMed to Microsoft Copilot in 2 minutes
Start a free trial on AnythingMCP Cloud, connect PubMed in the guided setup, then add your MCP URL to Microsoft Copilot. No code and no server to run.
No credit card · 7-day trial · Self-host alternative available
Try asking
Example prompts for PubMed
Click any prompt to copy it. Paste into Claude, ChatGPT, Cursor, Gemini, Copilot or OpenClaw to run it against this connector.
Claude is AI and can make mistakes. Please double-check responses.
💡 No install? Use cloud.anythingmcp.com directly. Sign in, click Connectors → PubMed, install it, mint an MCP API key and you're done. No Docker, no
git clone, no local server.
PubMed + Microsoft Copilot
Biomedical literature from PubMed through the NCBI E-utilities, no key needed: search 40 million citations with PubMed query syntax, read summaries, abstracts and MeSH terms, follow similar and citing articles, find full-text links, convert PMID, PMCID and DOI, and read open-access full text from PubMed Central.
Prerequisites
See the full setup instructions baked into the connector (visible in the in-app store when you select the connector). The required environment variables for this connector are:
None. This connector needs no account, API key or sign-in.
Step 1 — Get credentials
Setup: nothing is required; it works without a key at up to 3 requests per second. For 10 requests per second, sign in at https://account.ncbi.nlm.nih.gov, open Account settings, create a key under API Key Management and set it as NCBI_API_KEY. The key is sent to the E-utilities only, as the api_key query parameter. Every call names the tool AnythingMCP to NCBI, as its usage policy asks.
Where to start
pubmed_searchturns a query into PMIDs (ids only) and shows inquerytranslationhow PubMed read it.pubmed_get_summariesgives titles, authors, journal and DOI for those ids;pubmed_fetch_abstractsgives the abstracts as text.- Go deeper per article:
pubmed_fetch_article_details(MeSH headings, affiliations, grants, references),pubmed_list_similar_articles,pubmed_list_citing_articles,pubmed_list_references,pubmed_get_full_text_links. - Full text:
pubmed_convert_idstells whether an article is in PubMed Central (it then has a PMCID);pubmed_get_pmc_full_textreturns the text for open-access articles.
Other tools: pubmed_check_spelling (did you mean), pubmed_match_citations (citation to PMID), pubmed_get_links (links to other databases such as gene or pmc), pubmed_list_databases and pubmed_get_database_info (field tags and link names). pubmed_search and pubmed_get_summaries take a db argument, so the same two steps work for mesh, pmc, nlmcatalog, gene and the rest.
Query syntax: words are combined with AND and expanded to MeSH terms and spelling variants (automatic term mapping). Field tags go in square brackets after a term: [ti] title, [tiab] title or abstract, [au] author, [ta] journal, [dp] publication date, [pt] publication type, [mh] MeSH heading, [la] language. Boolean operators must be upper case. A date range is written 2020:2024[dp] or passed as mindate and maxdate. Filters are ordinary terms, e.g. free full text[sb], humans[mh], review[pt].
Reading the answers
- Ids are strings. A PMID identifies a PubMed citation; a PMCID (PMC plus digits) identifies a full-text article in PubMed Central; they are different numbers.
pubmed_searchreturns at mostretmaxids per call (default 20) and pages withretstartup to the 10,000th hit; narrow the query for more.pubmed_get_summariesputs each record underresultkeyed by its id, with the order inresult.uids.pubdateis free text such as 2024 May or 2013 Jan 15.- A failed search answers HTTP 200 with
esearchresult.ERROR; an empty result hascount0 and a warning list. - The link tools return
linksets; when an article has no such links thelinksetdbskey is simply missing.
Limits and policy: 3 requests per second without a key, 10 with one; exceeding it answers 429. Large jobs belong on weekends or between 9 pm and 5 am US Eastern time. Abstracts are copyrighted by their publishers: quote and cite them, do not republish in bulk. NCBI's disclaimer and copyright notice apply to all data.
Step 2 — Install the adapter
curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d
Step 3 — Add the connector in Microsoft Copilot
Your server URL: in AnythingMCP, open MCP Servers → the server this connector is on, and copy its URL (
https://cloud.anythingmcp.com/mcp/…). Use it wherever this guide showsYOUR_SERVER_ID.
Microsoft Copilot uses MCP servers through agents built in Copilot Studio: you add AnythingMCP to an agent as a tool, then publish the agent to Microsoft 365 Copilot and Teams. Copilot Studio connects from Microsoft's cloud over Streamable HTTP, which AnythingMCP supports.
- In Copilot Studio, open your agent (or create one), go to Tools and choose Add a tool → New tool → Model Context Protocol.
- Enter a Server name (for example
AnythingMCP), a Server description that says what the connector does, and the Server URLhttps://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID. Copilot Studio uses the description to decide when to call the server. - Under authentication, choose API key, set Type to Header and the header name to
X-API-Key, then select Create. - In Add tool, choose Create a new connection, paste an MCP API key from AnythingMCP (MCP Servers → your server → API keys) and select Add to agent.
- Try it in the agent's Test pane: ask for something that needs the
PubMedtools. - Select Publish, then Channels → Microsoft 365 and Microsoft Teams, keep Make agent available in Microsoft Copilot selected and choose Add channel. See agent in Teams installs it for you; in Microsoft 365 Copilot, type @ and pick the agent.
Prefer per-user sign-in? Choose OAuth 2.0 → Dynamic discovery instead of an API key: each user then signs in to AnythingMCP the first time the agent calls it.
Self-hosting? Use your instance's public HTTPS address instead of https://cloud.anythingmcp.com. Copilot Studio connects from Microsoft's cloud, so localhost does not work.
Available tools
| Tool | What it does |
|---|---|
pubmed_search | Search PubMed (or another Entrez database) and get the matching record ids. Returns esearchresult with count (total hits), idlist (the ids… |
pubmed_get_summaries | Get the document summaries of PubMed records: per id title, authors, source (journal abbreviation), fulljournalname, pubdate, epubdate… |
pubmed_fetch_abstracts | Fetch PubMed records as plain text, ready to read: citation line, title, authors with affiliations, the full abstract, DOI, PMID and PMCID.… |
pubmed_fetch_article_details | Fetch the complete PubMed record of one or a few articles as structured data (parsed from PubMed XML): PubmedArticleSet.PubmedArticle with… |
pubmed_list_similar_articles | List the articles PubMed computes as most similar to an article (the Similar articles list), best first with a similarity score. Returns… |
pubmed_list_citing_articles | List the PubMed articles that cite an article (Cited by), as far as the citing articles are in PubMed Central or supply reference lists.… |
pubmed_list_references | List the PubMed articles in the reference list of an article, when the publisher or PubMed Central supplied it. Returns… |
pubmed_get_full_text_links | Get the links to the full text of an article: publisher site, PubMed Central and other providers, each with url, provider name, categories… |
pubmed_get_links | Generic Entrez link lookup between databases, for links the dedicated tools do not cover: e.g. from PubMed to pmc (the PMC id of the free… |
pubmed_check_spelling | Get PubMed's spelling suggestion for a query, the "Did you mean" line. Returns eSpellResult with Query and CorrectedQuery (empty when… |
pubmed_match_citations | Find the PMID of a known citation from its journal, year, volume, first page and author (batch citation matcher). Returns plain text: each… |
pubmed_list_databases | List the Entrez databases the E-utilities serve (pubmed, pmc, mesh, gene, protein, clinvar and about 30 more). Returns einforesult.dblist |
pubmed_get_database_info | Describe one Entrez database: record count, last update, the searchable fields with their tags (fieldlist: name, fullname, description) and… |
pubmed_convert_ids | Convert between PMID, PMCID and DOI for articles that are in PubMed Central (PMC ID Converter). Returns records with pmid, pmcid and doi… |
pubmed_get_pmc_full_text | Get the full text of an open-access article from PubMed Central as JSON (BioC format): a list with one collection whose… |
Example prompts
- "Find randomized controlled trials on GLP-1 agonists and kidney outcomes published 2022 to 2025."
- "Give me the abstracts of the five newest reviews on long COVID fatigue."
- "Which MeSH headings and grants does PMID 38012345 have?"
- "List articles that cite PMID 33301246 and articles similar to it."
- "Is this article open access in PubMed Central? Get the full text if it is."
FAQ
Do I need an account or an API key? No. The connector reads the public NCBI E-utilities of the US National Library of Medicine at up to 3 requests per second without a key. For 10 requests per second, create a free key in your NCBI account under API Key Management and set it as NCBI_API_KEY.
What does it cover? PubMed search with field tags, MeSH and date ranges, summaries, abstracts and full records with MeSH headings, affiliations, grants and references, similar and citing articles, full-text links, citation matching, PMID, PMCID and DOI conversion and open-access full text from PubMed Central. The other Entrez databases such as mesh, pmc and gene work with the same search and summary tools.
Is it read-only, and can I reuse the abstracts? Yes, every tool only reads and nothing installs switched off. Abstracts are copyrighted by their publishers: quote and cite them, do not republish them in bulk. Large jobs belong on weekends or at night US Eastern time, as NCBI asks.
Which Copilot is this for? Microsoft 365 Copilot at work, through agents built in Copilot Studio. The Microsoft Copilot app for personal accounts has no option to add your own MCP server.
What do I need? A work account with access to Copilot Studio (a license or a trial) to build the agent. People who use it in Microsoft 365 Copilot or Teams need access to the agent: share it with them, or ask an admin to publish it to the organization. If your organization applies data policies to Power Platform connectors, they cover MCP servers too.
The agent doesn't call the tools. Check that the header name is exactly X-API-Key and that the key belongs to the same MCP server as the URL, and make the server description specific: Copilot Studio uses it to decide when to call the server. Publish the agent again after each change; in an open chat, type "start over" to get the new version.
Next steps
Was this guide helpful?