New:Socket for Asana Is Now Available.Learn more
Get Started

public-api-toolkit

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

public-api-toolkit

Structured public data for AI agents through one cross-platform MCP server.

Source
npmnpm
Version
1.0.3
Version published
Weekly downloads
6
-40%
Maintainers
1
Weekly downloads
 
Created
Source

Public API Toolkit

Structured public data for AI agents.

Public API Toolkit is a cross-platform MCP server that turns public APIs into clean, agent-ready tools.

It packages 41 grouped public_api_<group> tools behind one local MCP server, so agents can ask for weather, countries, crypto prices, holidays, Wikipedia summaries, open data, transport lookups, and dozens of other structured API results without scraping web pages first.

Landing Page

The repository includes a static GitHub Pages-style landing page in site/ for launch storytelling, product screenshots, and direct install links.

  • Open site/index.html locally for a no-build preview
  • Reuse the page for GitHub Pages or any static host
  • Publish it directly with the included GitHub Pages workflow
  • Keep the product README focused on setup while the landing page handles narrative and marketing

At A Glance

AreaStatus
Packagepublic-api-toolkit@1.0.1
Tool groups10
Tools41
npmpublic-api-toolkit
GitHubnikhilreddy3888/public-api-toolkit

Repository health references:

Why It Exists

  • Structured JSON beats brittle scraping for repeatable agent workflows.
  • One MCP server is easier to install than wiring dozens of single-purpose connectors.
  • Premium providers are optional, so the server stays useful even without API keys.
  • The same tool surface can be reused across Codex, Claude Code, Cursor, and other MCP clients.

Why Teams Use It

Public API Toolkit is for the part of agent work that should be deterministic:

  • live factual lookups that already have good public APIs
  • coding workflows that need exact package, geo, weather, or open-data answers
  • local MCP setups where one reliable server is easier to manage than many narrow ones

The product story is simple:

  • models reason well
  • APIs retrieve live facts well
  • MCP is the cleanest bridge between the two

When It Helps Most

Public API Toolkit is strongest on structured lookup tasks, where web search tends to waste tokens and return noisy HTML:

  • weather and air quality
  • currency and crypto prices
  • country and university data
  • dictionaries and Wikipedia summaries
  • public holidays, geocoding, and open-data lookups

It is less differentiated for open-ended research, editorial comparisons, or tasks where the model still needs to browse multiple human-written sources.

For a current snapshot of known-good areas versus fragile providers, see STATUS.md.

Why It Is Bundled

This project does not try to expose every upstream as its own standalone MCP tool.

Instead, it groups related capabilities into one tool per domain so the surface stays practical for agents:

  • public_api_weather instead of many weather-specific tools
  • public_api_currency_exchange instead of many FX providers
  • public_api_wikipedia instead of separate search, summary, and content tools

That tradeoff favors:

  • fewer installs
  • a more consistent tool naming scheme
  • easier cross-client setup

It does mean the tool surface is broader than a single-purpose MCP server. That is an intentional convenience tradeoff, not something the repo tries to hide.

Client Support

ClientStatusNotes
CodexDirectLocal stdio MCP server via ~/.codex/config.toml
Claude CodeDirectLocal stdio MCP server via .mcp.json or claude mcp add-json
CursorDirectLocal stdio MCP server via mcp.json
OpenCodeDirectLocal MCP server via opencode.jsonc
Gemini CLIDirectLocal settings.json MCP or extension install from this repo
GitHub Copilot CLIDirect after publishDirect repo plugin install via .claude-plugin and .mcp.json
Generic MCP clientsDirectUse the same stdio command shape if the client supports local MCP processes
ChatGPT Apps / remote MCPPartialRequires a remote MCP transport; this repo currently ships stdio only

Quick Start

Run From Source

npm install
npm test
npm run build
node dist/index.js

Run After npm Publish

npx -y public-api-toolkit

Add It To A Client

Tool Coverage

Public API Toolkit exposes 41 tools across these categories:

  • Data reference: countries, dictionaries, books, universities
  • Geolocation: geocoding and IP lookup
  • Finance: FX, crypto, stocks
  • Weather and environment: forecasts, air quality, carbon
  • Development: HTTP utilities, DNS, code execution, screenshots, placeholder data
  • Text and knowledge: translation, text analysis, Wikipedia, news
  • Media and entertainment: images, music, movies, games
  • Science and lifestyle: math, space, food, blockchain, holidays, transport
  • Validation and security: email, phone, content validation, security feeds, jobs
  • Civic data: government, health, and open data sets

The full catalog lives in docs/configuration/tool-groups.md.

API Keys

Most tools work without authentication. Optional premium-compatible providers are activated through PUBLIC_APIS_<NAME> environment variables such as:

  • PUBLIC_APIS_FINNHUB
  • PUBLIC_APIS_ALPHAVANTAGE
  • PUBLIC_APIS_FRED
  • PUBLIC_APIS_OMDB
  • PUBLIC_APIS_TMDB
  • PUBLIC_APIS_CARBON_INTERFACE
  • PUBLIC_APIS_MAILCHECK
  • PUBLIC_APIS_KICKBOX
  • PUBLIC_APIS_OPEN_CHARGE_MAP
  • PUBLIC_APIS_FOODDATA_CENTRAL

Details:

Repository Guide

Packaging

This repo includes:

  • plugins/public-api-toolkit/.mcp.json for Codex-compatible MCP packaging
  • plugins/public-api-toolkit/.codex-plugin/plugin.json for Codex plugin metadata
  • .claude-plugin/plugin.json and root .mcp.json for direct GitHub Copilot CLI plugin install
  • gemini-extension.json and GEMINI.md for Gemini CLI extension install
  • .codex/INSTALL.md and .opencode/INSTALL.md for fetch-and-follow setup flows
  • skills/public-api-toolkit/SKILL.md for agent routing guidance
  • examples/ with ready-to-copy config snippets

Runtime Notes

  • Transport: stdio MCP server
  • Upstream timeout: 15 seconds
  • Response cap: 30,000 characters with a truncation marker
  • User agent: public-api-toolkit/1.0

Roadmap Themes

The highest-value next steps are:

  • Add more useful public APIs
  • replace or remove clearly dead upstreams
  • add a first-party provider audit script
  • continue improving fallback behavior for degraded providers
  • improve product positioning around bundled convenience versus token footprint

Keywords

mcp

FAQs

Package last updated on 16 Apr 2026

Related posts