Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
altmetric avatar

Altmetric MCP

  • 7 repo stars
  • Updated August 7, 2026
  • altmetric/altmetric-mcp

Altmetric MCP is a MCP server that lets agents query Altmetric Details and Explorer APIs to measure research attention across news, policy, and social media.

About

Altmetric MCP is a Model Context Protocol server that wires Claude Code, Cursor, Codex, and similar agents into Altmetric’s Details Page and Explorer APIs. developers and small teams who write technical content, publish research summaries, or benchmark topics against academic discourse can ask the agent for attention metrics, outlet breakdowns, and discovery-style queries without leaving the IDE. You configure at least one credential path: ALTMETRIC_DETAILS_API_KEY for the Details API, or ALTMETRIC_EXPLORER_API_KEY with ALTMETRIC_EXPLORER_API_SECRET for Explorer. The server runs over stdio via the published npm package, which fits local agent workflows on macOS, Linux, or Windows. It is not a general web scraper or SEO rank tracker; it is specialized bibliometric and attention data for research identifiers and related entities. Use it during early research sprints when you need defensible third-party signals rather than guesswork about whether a niche has outward momentum.

  • Stdio MCP server (npm altmetric-mcp v0.6.1) for Altmetric Details and Explorer APIs
  • Supports Details API key and/or Explorer API key plus HMAC secret credential sets
  • Tracks research attention across news, policy, social media, and related outlets
  • Designed for agent-driven lookups instead of manual dashboard hopping
  • Environment-variable based secrets with no hardcoded credentials in repo

Altmetric MCP by the numbers

  • Data as of Aug 10, 2026 (Skillselion catalog sync)
terminal
claude mcp add --env ALTMETRIC_DETAILS_API_KEY=YOUR_ALTMETRIC_DETAILS_API_KEY --env ALTMETRIC_EXPLORER_API_KEY=YOUR_ALTMETRIC_EXPLORER_API_KEY --env ALTMETRIC_EXPLORER_API_SECRET=YOUR_ALTMETRIC_EXPLORER_API_SECRET altmetric-mcp -- npx -y altmetric-mcp

Add your badge

Show developers this MCP server is listed on Skillselion. Paste this into your README.

Listed on Skillselion
repo stars7
Packagealtmetric-mcp
TransportSTDIO
AuthRequired
Last updatedAugust 7, 2026
Repositoryaltmetric/altmetric-mcp

What it does

Let your coding agent query Altmetric attention scores and mentions for papers, DOIs, or URLs while you validate thought leadership or research-backed positioning.

Who is it for?

Best when you already have Altmetric API access and want agent-native literature and attention checks during ideation.

Skip if: Skip if you need Google Search Console rank tracking, generic social listening, or SEO keyword volumes without any research publishing angle.

What you get

After you register the stdio server and API keys, your agent can return structured Altmetric attention context inside the same thread where you draft positioning and content plans.

  • Agent-callable Altmetric lookups for configured identifiers and Explorer queries
  • Structured attention context usable in research and content planning threads
  • Repeatable stdio MCP wiring documented in your local agent config

By the numbers

  • Server version 0.6.1 published as npm package identifier altmetric-mcp
  • Two credential modes: Details API key only, or Explorer API key with HMAC secret
  • Transport: stdio per MCP server schema 2025-12-11
README.md

Altmetric MCP Server

Model Context Protocol (MCP) server that enables AI agents to access Altmetric APIs for tracking the attention and reach of research outputs across news outlets, policy documents, social media, and other online platforms.

Altmetric monitors where research is being discussed beyond traditional academic citations - from mainstream media coverage to policy citations, patent references, and social media engagement - providing a comprehensive view of real-world research impact.

Prerequisites

  • Node.js >= 20.6.0 - Download from nodejs.org (LTS recommended)
  • Altmetric API credentials (at least one):
    • Details Page API key - Free tier or commercial access
    • Explorer API key + secret - Institutional access

Don't have keys yet? Request API access

Quick Install (Claude Desktop on macOS)

Run the guided installer in Terminal - it checks Node.js, prompts for your API keys, and configures Claude Desktop automatically:

bash <(curl -fsSL https://raw.githubusercontent.com/altmetric/altmetric-mcp/main/install.sh)

Or if you've cloned the repo:

bash install.sh

Prefer to set things up manually? See Claude Desktop below.

Installation

Configure your MCP client to run the Altmetric MCP server using npx. Include only the API credentials you have access to.

{
  "type": "stdio",
  "command": "npx",
  "args": ["-y", "altmetric-mcp"],
  "env": {
    "ALTMETRIC_DETAILS_API_KEY": "your_details_api_key_here",
    "ALTMETRIC_EXPLORER_API_KEY": "your_explorer_api_key_here",
    "ALTMETRIC_EXPLORER_API_SECRET": "your_explorer_api_secret_here"
  }
}

Below are specific instructions for popular AI tools and editors.

Claude Desktop

  1. Open the configuration file at:

    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Windows: %APPDATA%\Claude\claude_desktop_config.json

    On macOS you can open it from Terminal:

    mkdir -p ~/Library/Application\ Support/Claude && open -a TextEdit ~/Library/Application\ Support/Claude/claude_desktop_config.json
    
  2. Add the Altmetric MCP server. If the file is empty, paste this (replacing the placeholder keys with your own, and removing any you don't have):

    {
      "mcpServers": {
        "Altmetric": {
          "type": "stdio",
          "command": "npx",
          "args": ["-y", "altmetric-mcp"],
          "env": {
            "ALTMETRIC_DETAILS_API_KEY": "your_details_api_key_here",
            "ALTMETRIC_EXPLORER_API_KEY": "your_explorer_api_key_here",
            "ALTMETRIC_EXPLORER_API_SECRET": "your_explorer_api_secret_here"
          }
        }
      }
    }
    

    If the file already has content, add "Altmetric": { ... } inside the existing "mcpServers" block, separated by a comma from the other entries.

  3. Save the file and restart Claude Desktop (Cmd+Q then reopen).

  4. Verify by asking Claude: "Use the Altmetric tools to look up the attention score for DOI 10.1038/nature12373"

Claude Code

Install directly from the command line:

claude mcp add --transport stdio altmetric-mcp \
  --env ALTMETRIC_DETAILS_API_KEY=your_details_api_key_here \
  --env ALTMETRIC_EXPLORER_API_KEY=your_explorer_api_key_here \
  --env ALTMETRIC_EXPLORER_API_SECRET=your_explorer_api_secret_here \
  -- npx -y altmetric-mcp
VS Code (GitHub Copilot)

Add to your project .vscode/mcp.json:

{
  "servers": {
    "Altmetric": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "altmetric-mcp"],
      "env": {
        "ALTMETRIC_DETAILS_API_KEY": "your_details_api_key_here",
        "ALTMETRIC_EXPLORER_API_KEY": "your_explorer_api_key_here",
        "ALTMETRIC_EXPLORER_API_SECRET": "your_explorer_api_secret_here"
      }
    }
  }
}

Reload VS Code to apply the changes. More information.

Cursor

Add to ~/.cursor/mcp.json:

{
  "mcpServers": {
    "Altmetric": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "altmetric-mcp"],
      "env": {
        "ALTMETRIC_DETAILS_API_KEY": "your_details_api_key_here",
        "ALTMETRIC_EXPLORER_API_KEY": "your_explorer_api_key_here",
        "ALTMETRIC_EXPLORER_API_SECRET": "your_explorer_api_secret_here"
      }
    }
  }
}
Other MCP clients

Any MCP-compatible client that supports stdio transport can use this server. Use the generic configuration at the top of this section, adapting it to your client's config format. The command is always npx with args ["-y", "altmetric-mcp"] plus the environment variables for your API keys.

Deploying safely

This server runs as a child process of the MCP host (Claude Desktop, Claude Code, etc.). A few things are worth knowing before you wire it into a sensitive workflow.

What the server does

  • Read-only proxy to two Altmetric HTTP APIs over outbound HTTPS. The one exception is an idempotent POST to the Explorer identifier_lists endpoint (create-or-find), used internally to scope an Explorer query to a supplied set of identifiers; it creates no user-visible state and is not destructive.
  • No inbound network surface in the default stdio mode; no destructive operations. (The opt-in HTTP transport adds an OAuth-gated inbound surface.)
  • Treats upstream text as untrusted: scans for prompt-injection markers, redacts suspicious matches in the LLM-facing summary, and surfaces raw values only via structuredContent.

What you should do

  • Set API keys via your MCP host's env block, not via a committed .env file. Keys appear in URL query strings; treat them as bearer-equivalent credentials.
  • Run with reduced privileges if your host allows it. The server only needs outbound HTTPS to api.altmetric.com and www.altmetric.com. If your host or container runtime supports it, deny filesystem writes outside $TMPDIR and deny other network egress.
  • Consider an egress allowlist (forward proxy / DLP). If you're using the server inside an environment that processes sensitive data, route outbound traffic through a proxy that only allows the two Altmetric hosts. The server doesn't need to talk to anyone else.
  • Respect your data-classification zone. This server forwards tool arguments verbatim to a third party. If your prompt contains restricted or regulated data, it leaves your boundary.

What's enforced for you

  • Outbound URLs are asserted to use https:.
  • Upstream responses are capped at 20 MB and 60 s.
  • Inbound tool arguments are capped at 8 MB total / 64 KB per string.
  • Filter values are validated client-side (date format, length, pagination ranges) before any upstream call.
  • Upstream error bodies are logged to stderr by SHA-256 prefix only, not verbatim.

For vulnerability reports and supported versions see SECURITY.md.

HTTP transport (OAuth) — experimental

Besides the default stdio entrypoint, the server can run as a long-lived HTTP service that authenticates callers with OAuth 2.1 instead of static API keys. This is intended for shared/remote deployments and is still experimental.

In this mode the server is an OAuth resource server: clients present a bearer token issued by Altmetric Explorer (the authorization server). The server validates the token, exchanges it for that user's Explorer API credentials via Explorer's credential broker, then signs Explorer API calls itself — the client's bearer is never forwarded to the Altmetric API. Only the Explorer tools are exposed over HTTP; Details Page tools remain stdio-only for now.

Run it:

npm run start:http

Configuration (environment variables):

Variable Default Purpose
PORT 3000 Port to listen on
HOST 127.0.0.1 Interface to bind
EXPLORER_BASE_URL https://www.altmetric.com Explorer authorization server + API host (host-only; the /explorer prefix is baked in)
EXPLORER_ISSUER EXPLORER_BASE_URL OAuth issuer advertised in the RFC 9728 metadata. Must exactly equal the authorization server's RFC 8414 issuer. Only set for non-standard hosts.
MCP_PUBLIC_URL http://HOST:PORT This server's public URL (used in discovery metadata + WWW-Authenticate)

No ALTMETRIC_* keys are used on the HTTP transport — credentials are brokered per request.

Endpoints:

  • POST /mcp — MCP Streamable HTTP (bearer required). The transport is stateless: a fresh server/transport is created per request, so there are no sessions, any instance serves any request, and redeploys are invisible to clients. GET/DELETE /mcp return 405 (no server-initiated stream, no session to close).
  • GET /.well-known/oauth-protected-resource — RFC 9728 metadata pointing clients at Explorer
  • GET /health — health check

Unauthenticated /mcp requests get 401 with a WWW-Authenticate header pointing at the metadata document, so MCP clients can discover Explorer and run the OAuth flow automatically.

Troubleshooting

Problem Solution
command not found: node Node.js is not installed. Download it here (version 20.6.0 or later).
Claude Desktop won't start after editing config The JSON file has a syntax error. Check for missing commas, unmatched brackets, or trailing commas. Paste it into jsonlint.com to validate.
"MCP server failed to start" Run npx -y altmetric-mcp in Terminal to see the actual error. Usually a missing/invalid API key or Node.js version too old.
Tools appear but return 403 errors You're using a free-tier key with a commercial-tier tool (get_citation_details). Use get_citation_counts or search_citations instead.
First query is slow Normal. npx downloads the package on first run. Subsequent uses are faster.
Explorer tools fail Explorer tools need both ALTMETRIC_EXPLORER_API_KEY and ALTMETRIC_EXPLORER_API_SECRET. Make sure both are set.

API Tiers

Details Page API

  • Free Tier: Access to get_citation_counts and search_citations
  • Commercial Tier: Access to all Details Page tools including get_citation_details

If you attempt to use get_citation_details with a free API key, you'll receive a 403 error.

Explorer API

  • Institutional Access Only: All Explorer API tools require institutional credentials
  • Provides access to research outputs and attention data across the entire Altmetric database
  • Organizations with data integrations can also access their own institutional research outputs in isolation
  • Includes advanced filtering by author, department, journal, and custom organizational metadata

Tools

This server provides eleven tools across two APIs:

Tool API Tier Description
get_citation_counts Details Page Free Attention metrics by identifier (DOI, PubMed ID, etc.)
get_citation_details Details Page Commercial Full mention text, author details (incl. Dimensions Researcher IDs), metadata
search_citations Details Page Free Search attention data across all outputs by timeframe
get_batch_attention_data Details Page Commercial Attention metrics for many DOIs at once, ranked
translate_identifiers Details Page Commercial Translate identifiers (DOI, PMID, etc.) to Altmetric IDs
explore_research_outputs Explorer Institutional Search and filter research outputs
explore_attention_summary Explorer Institutional Aggregated attention metrics by source and date
explore_mentions Explorer Institutional Individual mention details with filtering
explore_demographics Explorer Institutional Audience geographic and demographic data
explore_mention_sources Explorer Institutional Source/outlet analysis for mentions
explore_journals Explorer Institutional Journal metrics, rankings, and search

All Explorer tools additionally accept researcher_id and grant_id filters (Dimensions IDs), and an identifiers parameter that scopes a query to a raw list of scholarly identifiers - the server builds the corresponding identifier list for you. Explorer responses also include sentiment data (sentiment-analysis-totals on research outputs, sentiment-analysis on X/Bluesky mentions).

For detailed parameters and examples, see TOOLS.md.

API Documentation

License

MIT

Recommended MCP Servers

How it compares

MCP integration to Altmetric’s commercial APIs, not an open-source scraper or a generic analytics skill.

FAQ

Who is Altmetric MCP for?

It is for developers and small teams with Altmetric API credentials who want research attention data inside Claude Code, Cursor, or Codex during early research and positioning work.

When should I use Altmetric MCP?

Use it in the Idea and research subphase when validating topics, comparing how competing papers or narratives are discussed, or grounding content strategy in measurable attention signals.

How do I add Altmetric MCP to my agent?

Install the npm package altmetric-mcp, add it as an stdio MCP server in your client config, and set ALTMETRIC_DETAILS_API_KEY and/or ALTMETRIC_EXPLORER_API_KEY plus ALTMETRIC_EXPLORER_API_SECRET in the environment.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.