GitHub Copilot logo

GitHub Copilot + GoldRush

By GitHub. Runs in IDE, Cloud, Extension.

GitHub Copilot is the most widely-adopted AI coding assistant, available as a VS Code extension and in GitHub.com. With MCP Server support in Copilot Chat, it can query GoldRush APIs to provide context-aware blockchain code suggestions and generate Web3 integrations directly in your editor.

Step 3: Configure GoldRush MCP server

{
  "mcpServers": {
    "goldrush": {
      "command": "npx",
      "args": ["-y", "@covalenthq/goldrush-mcp-server"],
      "env": { "GOLDRUSH_API_KEY": "YOUR_API_KEY" }
    }
  }
}

Set up GitHub Copilot with GoldRush

  1. 1Install GitHub Copilot extension

    Install the GitHub Copilot extension in VS Code from the marketplace.

  2. 2Install GoldRush CLI

    Query onchain data directly from your terminal, useful for testing queries before using them in Copilot.

    npm install -g @covalenthq/goldrush-cli
  3. 3Configure GoldRush MCP server

    Add the MCP server config to your VS Code settings.json or .vscode/mcp.json.

    {
      "mcpServers": {
        "goldrush": {
          "command": "npx",
          "args": ["-y", "@covalenthq/goldrush-mcp-server"],
          "env": { "GOLDRUSH_API_KEY": "YOUR_API_KEY" }
        }
      }
    }
  4. 4Open Copilot Chat

    Use Ctrl+Shift+I to open the Copilot Chat panel in VS Code.

  5. 5Query blockchain data

    Ask: "Use the GoldRush tools to get token balances for 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"

Things to ask GitHub Copilot

Once GoldRush is connected, ask in plain words. GitHub Copilot picks the calls.

  • “Get wallet balances on Ethereum using GoldRush”
  • “Show me recent transactions for this address on Base”
  • “Generate a function to fetch token prices from GoldRush”
  • “Create an API route that returns NFT data for a wallet”
  • “Add GoldRush SDK to this project and fetch portfolio data”
  • “Write a utility that checks token balances across multiple chains”
  • “Help me build a transaction history component with GoldRush”
  • “Create a typed GoldRush API client for this project”

Common workflows

  • Generate Web3 functions

    1. Start typing a function signature related to blockchain data
    2. Copilot suggests completions using GoldRush SDK patterns
    3. Accept and iterate with Tab completions
    4. Use Copilot Chat for more complex multi-step generation
  • Build API endpoints

    1. Ask Copilot Chat to generate API routes for GoldRush data
    2. It creates endpoints with proper error handling and typing
    3. Copilot suggests test cases for the endpoints
  • Code review with onchain context

    1. Select code that interacts with blockchain data
    2. Ask Copilot to review it and suggest improvements
    3. Copilot can use MCP tools to verify API responses match expectations
  • Add GoldRush to existing projects

    1. Ask Copilot Chat to add GoldRush SDK to your package.json
    2. Request it to create a GoldRush client utility file
    3. Have Copilot refactor existing data fetching to use GoldRush

The 37 MCP tools GitHub Copilot can call

Each tool is a GoldRush API call or analytics query. GitHub Copilot reads the descriptions and picks the tools a request needs.

Cross-chain

  • multichain_balances

    Fetch spot and historical balances for an address on up to 10 EVM chains.

  • multichain_transactions

    Fetch paginated transactions for up to 10 addresses and 10 chains.

  • multichain_address_activity

    Locate chains an address is active on with a single API call.

Balances

  • token_balances

    Get native and ERC20 token balances with spot prices and metadata.

  • historical_token_balances

    Get token balances at a specific block height or date.

  • historical_portfolio_value

    Get daily portfolio balance broken down by token.

  • erc20_token_transfers

    Get transfer-in and transfer-out events with historical prices.

  • token_holders

    Get paginated current or historical holders of a token.

  • native_token_balance

    Get native token balance with current market value.

Transactions

  • transaction

    Fetch a single transaction with decoded log events.

  • transaction_summary

    Get earliest/latest transactions and count for a wallet.

  • transactions_for_address

    Get paginated transactions with decoded logs for an address.

  • transactions_for_block

    Get all transactions in a block with decoded events.

Bitcoin

  • bitcoin_hd_wallet_balances

    Get balances for child addresses from an HD wallet xpub key.

  • bitcoin_transactions

    Get full transaction history for a Bitcoin wallet.

  • bitcoin_non_hd_wallet_balances

    Get balance for a non-HD Bitcoin address.

NFTs

  • nft_for_address

    Get ERC721 and ERC1155 NFTs held by an address.

  • nft_check_ownership

    Verify NFT ownership within a collection.

  • nft_check_ownership_token_id

    Verify ownership of a specific NFT by token ID.

Pricing

  • historical_token_prices

    Get historical prices for ERC20 and native tokens.

  • pool_spot_prices

    Get spot prices for a Uniswap V2/V3 pool.

Security

  • token_approvals

    Get token approvals categorized by spender with risk levels.

Utility

  • gas_prices

    Get real-time gas estimates for low, medium, and high speeds.

  • block

    Fetch a single block with timestamp, tx count, and miner info.

  • block_heights

    Get block heights within a date range.

  • log_events_by_address

    Get event logs emitted from a contract address.

  • log_events_by_topic

    Get event logs by topic hash across all contracts.

  • resolve_address

    Resolve an ENS, RNS or Unstoppable Domains name to an address.

Protocol analytics

  • list_entities

    List every dataset with live analytics, with its metrics and dimensions.

  • search_catalog

    Find a dataset, metric, dimension or ticker before querying it.

  • get_metadata

    Read what a dataset's metrics measure, how they split and what they can't answer.

  • get_metric

    Get one metric of a dataset as a daily, weekly or monthly series.

  • get_metrics

    Get several metrics of one dataset in a single call.

  • get_breakdown

    Split a metric by a dimension such as chain, asset or market.

  • list_members

    List the values a dimension holds, ranked, to filter on one of them.

  • compare_entities

    Compare two to ten named datasets on one metric.

  • rank_entities

    Rank every dataset that serves a metric.

GoldRush Agent Skills

Agent Skills give your agent the context it needs for every GoldRush endpoint: parameters, response shapes and credit costs. One command installs all of them.

npx skills add covalenthq/goldrush-agent-skills
  • Foundational API

    REST endpoints for historical blockchain data. Balances, transactions, NFTs, token prices, security checks, cross-chain queries across 100+ networks.

  • x402

    Pay-per-request access without API keys. Agents pay with stablecoins using the HTTP 402 protocol. No accounts, no rate limits, no key management.

  • CLI

    Terminal-first blockchain data with native MCP support. 17 commands that work for both humans and AI agents.

Tips

  • Use @workspace in Copilot Chat to give full project context
  • Copilot's inline suggestions work best when you have GoldRush SDK imported
  • Pin relevant GoldRush types files for better completions
  • Use Copilot Chat's /explain command to understand GoldRush API responses

Troubleshooting

MCP tools not available in Copilot Chat
Ensure you're using a current version of VS Code and the Copilot extension. MCP support is generally available in VS Code, so keep both updated to the latest release.
Copilot suggesting outdated GoldRush patterns
Pin the latest GoldRush SDK types file in your project. Copilot learns from local project files and will prefer up-to-date patterns.
Rate limit errors in Copilot Chat
MCP tool calls count against your GoldRush API limits. Monitor your usage at goldrush.dev/platform/usage and upgrade if needed.

More agents

  • Claude Code

    Anthropic's agentic coding tool that lives in your terminal and understands your codebase end-to-end.

  • Codex

    OpenAI's cloud-native coding agent that runs tasks in a sandboxed environment with full autonomy.

  • Gemini CLI

    Google's open-source terminal AI agent powered by Gemini models with built-in MCP support and a file-based skill system.

See every agent

GitHub Copilot and GoldRush FAQ

Yes, GitHub Copilot Chat in VS Code supports MCP Servers. Add the GoldRush MCP config to your VS Code settings or project .vscode/mcp.json file.