Skip to main content

Access the Portal MCP server

Server URL: https://portal.sqd.workers.dev/mcp

Use the Portal MCP server

Connect the Portal MCP server to your preferred AI tools.
1

Add the Portal MCP server to Claude

  1. Navigate to the Connectors page in Claude settings.
  2. Select Add custom connector.
  3. Add the Portal MCP server:
    • Name: Portal
    • URL: https://portal.sqd.workers.dev/mcp
  4. Select Add.
2

Access the MCP server in your chat

  1. When using Claude, select the attachments button (the plus icon).
  2. Select the Portal MCP server.
  3. Ask Claude questions about blockchain data from Portal API.
See the Model Context Protocol documentation for more details.

Available tools

The Portal MCP server provides 27 blockchain data query tools across 225+ datasets, organized into 6 categories.

Dataset Management (5 tools)

  • portal_list_datasets - Browse accessible blockchain datasets
  • portal_search_datasets - Locate chains by name or criteria
  • portal_get_dataset_info - Retrieve metadata and block ranges
  • portal_get_block_number - Obtain current block height
  • portal_validate_dataset - Verify dataset existence with suggestions

EVM Queries (8 tools)

  • portal_query_blocks - Access block details and transactions
  • portal_query_logs - Retrieve smart contract events
  • portal_query_transactions - Examine transaction information
  • portal_get_transactions_by_date - Query transactions using a specific date
  • portal_query_traces - Investigate internal calls
  • portal_query_state_diffs - Monitor storage modifications
  • portal_get_erc20_transfers - Follow token movements
  • portal_get_nft_transfers - Track NFT activity

Solana Queries (5 tools)

  • portal_query_solana_instructions - Examine program execution
  • portal_query_solana_balances - Monitor SOL movements
  • portal_query_solana_token_balances - Track SPL holdings
  • portal_query_solana_logs - Access program messages
  • portal_query_solana_rewards - Analyze validator incentives

Time-Range Queries (2 tools)

  • portal_query_by_custom_dates - Calendar-based queries
  • portal_query_by_date_range - Predefined time windows

Advanced Features (7 tools)

  • portal_stream - Custom low-level data access
  • portal_query_paginated - Handle large datasets with cursor-based pagination
  • portal_block_at_timestamp - Convert time to block numbers
  • portal_batch_query - Parallel multi-chain operations
  • portal_decode_logs - Parse events using ABI
  • portal_get_address_activity - Comprehensive wallet analysis
  • portal_get_token_transfers_for_address - Track holdings

Best practices

When using the Portal MCP server, follow these guidelines:
  1. Retrieve current block height before querying to establish valid ranges
  2. Always filter queries by addresses or topics to avoid memory limits
  3. Keep date ranges narrow (1-2 days maximum for logs/transactions)
  4. Leverage pagination for results exceeding single-request limits
  5. Batch operations across multiple blockchains simultaneously