~/CLIRank

Best CLI APIs for Claude Code in 2026

These APIs work well when called directly from Claude Code via curl, SDKs, or scripts. They are ranked by how useful they are in a CLI-first workflow. Use an API when you need more control than an MCP server provides, or when no MCP server exists for the service.

1
GitHub REST APIAPIVerified

Full GitHub access - repos, issues, PRs, actions, packages, and more.

CLI relevance
10
Quality
10
npm install octokit
2
Stripe APIAPIVerified

Payment processing - charges, subscriptions, invoices, and Connect.

CLI relevance
10
Quality
10
npm install stripe
3
Cloudflare APIAPIVerified

Workers, KV, R2, D1, DNS, and CDN management via REST.

CLI relevance
10
Quality
9
npm install cloudflare
4
AWS SDKAPIVerified

Complete AWS access - S3, Lambda, DynamoDB, SQS, and 200+ services.

CLI relevance
10
Quality
9
npm install @aws-sdk/client-s3
5
OpenAI APIAPIVerified

GPT models, DALL-E, Whisper, embeddings, and assistants.

CLI relevance
9
Quality
10
npm install openai
6
Anthropic APIAPIVerified

Claude models - chat, vision, tool use, and extended thinking.

CLI relevance
9
Quality
9
npm install @anthropic-ai/sdk
7
Twilio APIAPIVerified

SMS, voice calls, WhatsApp, video, and phone number management.

CLI relevance
9
Quality
9
npm install twilio
8
Supabase APIAPIVerified

Postgres, auth, storage, edge functions, and realtime subscriptions.

CLI relevance
9
Quality
9
npm install @supabase/supabase-js
9
Algolia APIAPIVerified

Search-as-a-service - full-text search, faceting, and recommendations.

CLI relevance
9
Quality
9
npm install algoliasearch
10

Firebase auth, Firestore, storage, messaging, and remote config.

CLI relevance
9
Quality
9
npm install firebase-admin
11
PlanetScale APIAPIVerified

Serverless MySQL with branching, deploy requests, and schema management.

CLI relevance
9
Quality
8
npm install @planetscale/database
12
Google APIsAPIVerified

Gmail, Calendar, Drive, Sheets, YouTube, Maps, and 200+ Google services.

CLI relevance
9
Quality
9
npm install googleapis
13
Neon APIAPIVerified

Serverless Postgres over HTTP with connection pooling and branching.

CLI relevance
9
Quality
8
npm install @neondatabase/serverless
14
Turso APIAPIVerified

Edge-hosted SQLite with sync, replication, and embedded replicas.

CLI relevance
9
Quality
8
npm install @libsql/client
15
Auth0 APIAPIVerified

Authentication, authorisation, user management, and SSO.

CLI relevance
9
Quality
8
npm install auth0
16
MongoDB APIAPIVerified

Document database - CRUD, aggregation pipeline, change streams, and Atlas.

CLI relevance
9
Quality
9
npm install mongodb
17
Resend APIAPIVerified

Developer-first email API with React Email support.

CLI relevance
8
Quality
8
npm install resend
18
SendGrid APIAPIVerified

Email delivery - transactional, marketing, and template management.

CLI relevance
8
Quality
8
npm install @sendgrid/mail
19
Postmark APIAPIVerified

Transactional email with industry-leading deliverability.

CLI relevance
8
Quality
7
npm install postmark
20
Mailgun APIAPIVerified

Email delivery, validation, and routing for developers.

CLI relevance
8
Quality
7
npm install mailgun.js
21
Pinecone APIAPIVerified

Vector database for embeddings, similarity search, and RAG.

CLI relevance
8
Quality
8
npm install @pinecone-database/pinecone
22
Slack Web APIAPIVerified

Messages, channels, users, files, and app interactions.

CLI relevance
8
Quality
9
npm install @slack/web-api
23
Vercel APIAPIVerified

Deployments, projects, domains, and serverless functions via REST.

CLI relevance
8
Quality
9
npm install -g vercel
24
Fly.io APIAPIVerified

Deploy and manage Fly.io apps, machines, volumes, and networking.

CLI relevance
8
Quality
7
curl -L https://fly.io/install.sh | sh
25
Weaviate APIAPIVerified

Open-source vector database with built-in vectorisation and hybrid search.

CLI relevance
8
Quality
8
npm install weaviate-client
26

Full-text search, analytics, log aggregation, and APM.

CLI relevance
8
Quality
9
npm install @elastic/elasticsearch
27
Plaid APIAPIVerified

Bank connections, transactions, identity, and financial data.

CLI relevance
7
Quality
8
npm install plaid
28
Notion APIAPIVerified

Create, read, and update Notion pages and databases via REST.

CLI relevance
7
Quality
8
npm install @notionhq/client
29
Linear APIAPIVerified

GraphQL API for managing Linear issues, projects, cycles, and teams.

CLI relevance
7
Quality
8
npm install @linear/sdk
30
Square APIAPIVerified

Payments, orders, inventory, customers, and point-of-sale.

CLI relevance
7
Quality
7
npm install square

Frequently asked questions

When should I use an API instead of an MCP server?

Use an API when you need fine-grained control, custom error handling, batch operations, or features the MCP server does not cover. APIs are also better for scripting and automation pipelines.

Can Claude Code call APIs directly?

Yes. Claude Code can run curl commands, execute Node scripts with SDK calls, or use any CLI tool that wraps an API. You just need the right credentials set as environment variables.

How do I manage API keys in Claude Code?

Set API keys as environment variables in your shell profile or .env file. Never hardcode them in scripts. Claude Code can read environment variables when making API calls.

Browse other categories