Back to Browse

Openapihub Examples MCP Server

Developer ToolsLow Risk10.0MCP RegistryRemote
Free

Server data from the Official MCP Registry

Read-only crypto data MCP: CEX/PerpDEX markets, DEX, wallets, explorers, prediction markets & RPC.

About

Read-only crypto data MCP: CEX/PerpDEX markets, DEX, wallets, explorers, prediction markets & RPC.

Remote endpoints: streamable-http: https://openapihub.dev/mcp

Security Report

10.0
Low Risk10.0Low Risk

Valid MCP server (1 strong, 0 medium validity signals). No known CVEs in dependencies. Imported from the Official MCP Registry.

26 tools verified · Open access · No issues found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Found in Source Code

Found by scanning the linked source code. This listing connects to a hosted endpoint, so none of this runs on your machine: it describes what the server software does where it is hosted.

env_vars

Applies to the server that hosts this plugin, not to your machine.

HTTP Network Access

Connects to external APIs or services over the internet.

How to Connect

Remote Plugin

No local installation needed. Your AI client connects to the remote endpoint directly.

Add this to your MCP configuration to connect:

{
  "mcpServers": {
    "dev-openapihub-mcp": {
      "url": "https://openapihub.dev/mcp",
      "headers": {
        "X-Hub-Key": "<YOUR_HUB_KEY>"
      }
    }
  }
}

This server needs this header. Replace each <YOUR_...> placeholder with your own value:

  • X-Hub-Key (required): Free read-only API key from @openapihubot (https://t.me/openapihubot?start=mcp). Required for tools/call.

Documentation

View on GitHub

From the project's GitHub README.

OpenAPI Hub Examples

Python, TypeScript, cURL, and MCP quickstart examples for OpenAPI Hub (openapihub.dev) — a unified read-only crypto market data, blockchain explorer, JSON-RPC, and remote MCP gateway.

Note: openapihub.dev is an independent project maintained under arbitron-adm2 and is not affiliated with any third-party organization of a similar name.

Quick Links

Authentication & Secret Handling

Get a free read-only API key from @openapihubot.

Always load API_HUB_KEY from your environment or secret store and pass it in the X-Hub-Key request header. Never hardcode the key in source files, URLs, prompts, logs, or committed config files.

export API_HUB_KEY="your-key-from-openapihubot"

Examples Included

PathDescription
examples/curl/discover_and_call.shUnauthenticated /discover, /status.json, and authenticated X-Hub-Key REST + batch token lookup
examples/python/quickstart.pyZero-dependency Python (stdlib urllib) discovery, schema card inspection, and authenticated route calls
examples/typescript/quickstart.tsZero-dependency TypeScript / Node.js (fetch) discovery and authenticated REST calls
mcp/claude-code.jsonStreamable HTTP MCP config for Claude Code
mcp/cursor.jsonStreamable HTTP MCP config for Cursor
mcp/codex.tomlStreamable HTTP MCP config for Codex CLI

Running the Examples

cURL / Bash

# Unauthenticated discovery works without a key:
bash examples/curl/discover_and_call.sh "wallet portfolio"

# Authenticated REST call (requires API_HUB_KEY in env):
API_HUB_KEY="..." bash examples/curl/discover_and_call.sh "token price"

Python (3.10+, zero external dependencies)

python3 examples/python/quickstart.py --query "perpetual funding rates"
# With API_HUB_KEY exported, also runs authenticated sample calls:
API_HUB_KEY="..." python3 examples/python/quickstart.py --query "token price"

TypeScript (Node.js 22+ native TS or tsx)

node examples/typescript/quickstart.ts "prediction markets"
# With API_HUB_KEY exported, also runs authenticated sample calls:
API_HUB_KEY="..." node examples/typescript/quickstart.ts "token price"

Remote MCP Setup

Remote MCP is served over Streamable HTTP at https://openapihub.dev/mcp. Discovery methods (initialize, notifications/initialized, ping, tools/list) work without authentication; tools/call requires the X-Hub-Key header.

  • Claude Code CLI:
    claude mcp add --transport http openapi-hub https://openapihub.dev/mcp \
      --header "X-Hub-Key: $API_HUB_KEY"
    
  • Claude Code project config: see mcp/claude-code.json
  • Cursor: see mcp/cursor.json
  • Codex CLI (~/.codex/config.toml): see mcp/codex.toml

License

MIT — see LICENSE.

Reviews

No reviews yet

Be the first to review this server!