Regen Network MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Regen Network MCP Server find the latest carbon credit sell orders and their prices"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Regen Network MCP Server
A Model Context Protocol (MCP) server providing programmatic access to the Regen Network blockchain - enabling AI agents and developers to interact with ecological credit markets.
Overview
This MCP server enables seamless interaction with Regen Network, a blockchain platform designed for ecological asset verification and trading. Through a standardized interface, you can:
š Query ecological credit types, classes, and batches
š° Analyze marketplace dynamics and sell orders
š Perform portfolio impact analysis
š Compare methodology frameworks
āļø Access blockchain data (bank, governance, distribution modules)
š¤ Enable AI agents to participate in environmental markets
What is Regen Network?
Regen Network is a specialized blockchain infrastructure for ecological credits, supporting diverse asset types:
Carbon Credits (CO2e sequestration and reduction)
Biodiversity Credits (habitat preservation and restoration)
Regenerative Agriculture Metrics (soil health, grazing management)
The network provides transparent, verifiable tracking of ecological projects with on-chain provenance.
What is MCP?
The Model Context Protocol is a standardized interface for connecting AI systems to external data sources and tools. This server implements MCP to make Regen Network accessible to AI agents like Claude, ChatGPT, and custom applications.
Related MCP server: Nexus MCP Server
Features
š ļø 45+ Blockchain Tools
Bank Module (11 tools): Account balances, token supplies, denomination metadata
Distribution Module (9 tools): Validator rewards, delegator information, community pool
Governance Module (8 tools): Proposals, votes, deposits, tally results
Marketplace Module (5 tools): Sell orders, pricing, allowed denominations
Ecocredits Module (4 tools): Credit types, classes, projects, batches
Baskets Module (5 tools): Basket operations, balances, fees
Analytics Module (3 tools): Portfolio impact, market trends, methodology comparison
š 8 Interactive Prompts
Guided workflows for common tasks:
Chain exploration and getting started
Ecocredit query workshop
Marketplace investigation
Project discovery
Credit batch analysis
Query builder assistance
Configuration setup
Full capabilities reference
š§ Enterprise Features
Multiple endpoint failover for reliability
Configurable caching layer
Type-safe Pydantic models
Async/await for performance
Comprehensive error handling with retryability signals
Health monitoring and metrics
š API Resilience (v3.1)
The client includes hardened retry/backoff logic:
Transient errors (5xx, 429, timeouts) are automatically retried with exponential backoff + jitter
Client errors (4xx except 429) fail immediately without wasting retry attempts
All errors include
retryableandretry_after_msfields for downstream clientsfetch_all_pages()helper eliminates agent-side pagination loops
š·ļø Credit Class Name Resolution (v3.2)
Credit class names are now resolved directly from on-chain anchored metadata IRIs:
Authoritative names:
schema:namefromhttps://api.regen.network/data/v2/metadata-graph/{iri}Source registry: Extracts
regen:sourceRegistry(e.g., "City Forest Credits" for C02)Caching: 1-hour TTL for resolved metadata, 5-minute TTL for failures
No guessing: Class names like C01="Verified Carbon Standard" come from the chain, not hardcoded mappings
š Summary Mode
The /ecocredits/batches endpoint supports aggregation:
# Get summary by credit type instead of paginating through all batches
curl "https://regen.gaiaai.xyz/regen-api/ecocredits/batches?summary=true&fetch_all=true"Returns totals for issued/tradable/retired credits by type, reducing common multi-page loops.
Installation
Prerequisites
Python 3.10 or higher
pip package manager
Quick Install
# Clone the repository
git clone https://github.com/your-org/regen-python-mcp.git
cd regen-python-mcp
# Install dependencies
pip install -r requirements.txt
# Run the server
python main.pyConfiguration
The server uses environment variables for configuration. Create a .env file:
# Optional: Override default RPC endpoints
REGEN_RPC_ENDPOINTS=https://regen-rpc.polkachu.com,https://rpc.cosmos.directory/regen
# Optional: Override default REST endpoints
REGEN_REST_ENDPOINTS=https://regen-api.polkachu.com,https://rest.cosmos.directory/regen
# Optional: Configure caching
REGEN_MCP_ENABLE_CACHE=true
REGEN_MCP_CACHE_TTL_SECONDS=60
# Optional: Logging level
REGEN_MCP_LOG_LEVEL=INFOSee src/mcp_server/config/settings.py for all configuration options.
Quick Start
Using with Claude Code / Claude Desktop
The repository includes pre-configured MCP setup files. See MCP_SETUP.md for complete instructions.
Quick Start:
Files are already configured:
.mcp.json- Server connection config.claude/settings.json- Enable MCP servers
Install dependencies:
pip install -r requirements.txtRestart Claude Code
Manual Configuration:
Add to your Claude Desktop or Claude Code configuration:
{
"mcpServers": {
"regen-network": {
"command": "/path/to/uv",
"args": ["run", "--directory", "/path/to/regen-python-mcp", "python", "main.py"],
"env": {
"PYTHONPATH": "/path/to/regen-python-mcp/src"
}
}
}
}Using with Python
from mcp.client import ClientSession, StdioServerParameters
import asyncio
async def main():
server_params = StdioServerParameters(
command="python",
args=["main.py"]
)
async with ClientSession(server_params) as session:
# List available tools
tools = await session.list_tools()
print(f"Available tools: {len(tools)}")
# List credit types
result = await session.call_tool("list_credit_types", {})
print(result)
asyncio.run(main())Example Queries
# Get all ecological credit types
await client.call_tool("list_credit_types", {})
# List credit classes with pagination
await client.call_tool("list_classes", {"limit": 10, "offset": 0})
# Get marketplace sell orders
await client.call_tool("list_sell_orders", {"page": 1, "limit": 20})
# Analyze portfolio impact
await client.call_tool("analyze_portfolio_impact", {
"address": "regen1...",
"analysis_type": "full"
})
# Compare methodologies
await client.call_tool("compare_credit_methodologies", {
"class_ids": ["C01", "C02", "C03"]
})Using With ChatGPT Custom GPT Actions (OpenAPI)
OpenAI Custom GPT Actions enforce a maximum of 30 operations per OpenAPI spec, and Action sets cannot include duplicate domains. This repo supports a two-Action setup:
Ledger Action (on-chain): upload
openapi-gpt-ledger.jsonwith serverhttps://regen.gaiaai.xyz(25 ops,/regen-api/*only)KOI Action (knowledge): upload
openapi-gpt-koi.jsonwith serverhttps://registry.regen.gaiaai.xyz(4 ops,/api/koi/*only)
To regenerate the GPT/Full + split Action specs deterministically:
python3 scripts/generate_openapi_schemas.py
python3 scripts/validate_openapi_gpt.py --strictRecommended instruction text for the GPT lives in:
gpt-instructions.mdgpt-knowledge.md
Architecture
regen-python-mcp/
āāā main.py # Entry point
āāā requirements.txt # Python dependencies
āāā docs/ # Documentation
ā āāā regen_mcp_thesis.md # Vision and use cases
ā āāā regen_network_exploration_report.md
āāā tests/ # Test suite
āāā archive/ # Archived exploratory code
āāā src/
āāā mcp_server/
āāā server.py # Main MCP server (45 tools, 8 prompts)
āāā client/ # Regen Network API client
āāā config/ # Configuration management
āāā models/ # Pydantic data models
āāā tools/ # Tool implementations by module
āāā prompts/ # Interactive prompt guides
āāā resources/ # Dynamic resource handlers
āāā cache/ # Caching layer
āāā monitoring/ # Health and metrics
āāā scrapers/ # Data collection utilitiesDesign Principles
Modular Organization: Tools grouped by blockchain module for maintainability
Type Safety: Pydantic models throughout for runtime validation
Async-First: All I/O operations use async/await patterns
Graceful Degradation: Optional modules with fallback behavior
Configuration-Driven: Environment variables for deployment flexibility
Tool Reference
Bank Module (11 tools)
list_accounts,get_account,get_balance,get_all_balancesget_spendable_balances,get_total_supply,get_supply_ofget_bank_params,get_denoms_metadata,get_denom_metadata,get_denom_owners
Distribution Module (9 tools)
get_distribution_params,get_validator_outstanding_rewardsget_validator_commission,get_validator_slashesget_delegation_rewards,get_delegation_total_rewardsget_delegator_validators,get_delegator_withdraw_address,get_community_pool
Governance Module (8 tools)
get_governance_proposal,list_governance_proposalsget_governance_vote,list_governance_voteslist_governance_deposits,get_governance_paramsget_governance_deposit,get_governance_tally_result
Marketplace Module (5 tools)
get_sell_order,list_sell_orderslist_sell_orders_by_batch,list_sell_orders_by_seller,list_allowed_denoms
Ecocredits Module (4 tools)
list_credit_types,list_classes,list_projects,list_credit_batches
Baskets Module (5 tools)
list_baskets,get_basket,list_basket_balancesget_basket_balance,get_basket_fee
Analytics Module (3 tools)
analyze_portfolio_impact,analyze_market_trends,compare_credit_methodologies
Development
Setup Development Environment
# Create virtual environment
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install in editable mode
pip install -e .
# Install development dependencies
pip install pytest black mypy ruffRunning Tests
# Run all tests
pytest tests/
# Run with coverage
pytest --cov=src/mcp_server tests/
# Run specific test file
pytest tests/test_prompts.py -vCode Quality
# Format code
black src/
# Type checking
mypy src/
# Linting
ruff check src/Documentation
Prompts Guide: Complete guide to interactive prompts
Thesis Document: Vision, use cases, and impact potential
Exploration Report: Technical deep-dive
Configuration: All configuration options
Use Cases
For AI Agents
Autonomous environmental market analysis
Automated portfolio optimization
Real-time credit price discovery
Methodology comparison and selection
For Developers
Building eco-finance applications
Integrating Regen data into dashboards
Creating custom analytics tools
Prototyping new market mechanisms
For Researchers
Environmental credit market analysis
Methodology effectiveness studies
Market liquidity and pricing research
Impact verification and tracking
Contributing
Contributions welcome! Please:
Fork the repository
Create a feature branch (
git checkout -b feature/amazing-feature)Commit your changes (
git commit -m 'Add amazing feature')Push to the branch (
git push origin feature/amazing-feature)Open a Pull Request
License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgments
Regen Network - For building the ecological credit infrastructure
Anthropic - For the Model Context Protocol specification
The open source community
Links
Built with š± for a regenerative future
Available Tools
45 toolsanalyze_market_trendsC
Analyze market trends across credit types with historical data analysis.
Inputs: time_period, credit_types. Returns: result
analyze_portfolio_impactC
Advanced portfolio ecological impact analysis.
Inputs: address (required), analysis_type. Returns: result
compare_credit_methodologiesC
Compare different credit class methodologies for impact efficiency analysis.
Inputs: class_ids (required). Returns: result
get_accountC
Get detailed account information.
Inputs: address (required). Returns: result
get_all_balancesC
Get all token balances for account.
Inputs: address (required), page, limit. Returns: result
get_balanceC
Get specific token balance for account.
Inputs: address (required), denom (required). Returns: result
get_bank_paramsA
Get bank module parameters.
Inputs: no named parameters. Returns: result
get_basketC
Get specific basket information.
Inputs: basket_denom (required). Returns: result
get_basket_balanceC
Get specific batch balance in basket.
Inputs: basket_denom (required), batch_denom (required). Returns: result
get_basket_feeB
Get basket creation fee.
Inputs: no named parameters. Returns: result
get_community_poolB
Get community pool balance.
Inputs: no named parameters. Returns: result
get_delegation_rewardsB
Get delegation rewards for specific delegator-validator pair.
Inputs: delegator_address (required), validator_address (required). Returns: result
get_delegation_total_rewardsC
Get total delegation rewards for a delegator.
Inputs: delegator_address (required). Returns: result
get_delegator_validatorsC
Get validators that a delegator is bonded to.
Inputs: delegator_address (required). Returns: result
get_delegator_withdraw_addressC
Get withdraw address for a delegator.
Inputs: delegator_address (required). Returns: result
get_denom_metadataC
Get metadata for specific token.
Inputs: denom (required). Returns: result
get_denom_ownersC
Get all holders of a token.
Inputs: denom (required), page, limit. Returns: result
get_denoms_metadataC
Get metadata for all tokens.
Inputs: page, limit. Returns: result
get_distribution_paramsB
Get distribution module parameters.
Inputs: no named parameters. Returns: result
get_governance_depositC
Get specific deposit for a proposal.
Inputs: proposal_id (required), depositor (required). Returns: result
get_governance_paramsC
Get governance parameters.
Inputs: params_type (required). Returns: result
get_governance_proposalA
Get specific governance proposal.
Inputs: proposal_id (required). Returns: result
get_governance_tally_resultC
Get vote tally for a proposal.
Inputs: proposal_id (required). Returns: result
get_governance_voteC
Get specific vote on a proposal.
Inputs: proposal_id (required), voter (required). Returns: result
get_sell_orderC
Get specific marketplace sell order.
Inputs: sell_order_id (required). Returns: result
get_spendable_balancesC
Get spendable balances for account.
Inputs: address (required), page, limit. Returns: result
get_supply_ofC
Get total supply of specific token.
Inputs: denom (required). Returns: result
get_total_supplyC
Get total supply of all tokens.
Inputs: page, limit. Returns: result
get_validator_commissionC
Get commission for a validator.
Inputs: validator_address (required). Returns: result
get_validator_outstanding_rewardsC
Get outstanding rewards for a validator.
Inputs: validator_address (required). Returns: result
get_validator_slashesC
Get slashing events for a validator.
Inputs: validator_address (required), starting_height, ending_height, page, +1 more. Returns: result
list_accountsC
List all accounts on Regen Network.
Inputs: page, limit. Returns: result
list_allowed_denomsC
List allowed payment tokens.
Inputs: page, limit. Returns: result
list_basket_balancesC
List credit batches in basket.
Inputs: basket_denom (required), limit, offset. Returns: result
list_basketsB
List all ecocredit baskets.
Inputs: limit, offset. Returns: result
list_classesC
List all credit classes.
Inputs: limit, offset. Returns: result
list_credit_batchesC
List all credit batches.
Inputs: limit, offset. Returns: result
list_credit_typesB
List all enabled credit types.
Inputs: no named parameters. Returns: result
list_governance_depositsC
List deposits for a specific proposal.
Inputs: proposal_id (required), page, limit. Returns: result
list_governance_proposalsC
List governance proposals with optional filters.
Inputs: page, limit, proposal_status, voter, +1 more. Returns: result
list_governance_votesC
List votes for a specific proposal.
Inputs: proposal_id (required), page, limit. Returns: result
list_projectsC
List all registered projects.
Inputs: limit, offset. Returns: result
list_sell_ordersC
List all active sell orders.
Inputs: page, limit. Returns: result
list_sell_orders_by_batchB
List sell orders for specific batch.
Inputs: batch_denom (required), page, limit. Returns: result
list_sell_orders_by_sellerC
List sell orders by seller.
Inputs: seller (required), page, limit. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogā¦
TDQS
Scored across 45 tools
Most tools have distinct purposes (e.g., get_balance vs get_all_balances vs get_spendable_balances), and descriptions clarify differences. A few similar prefixes might cause minor confusion, but overall agents can differentiate.
Tool names follow a consistent pattern: get_ for queries, list_ for enumerations, and a few action verbs (analyze, compare). All use snake_case with clear resource references.
At 45 tools, the count exceeds the 25+ threshold for 'too many'. While the domain is broad, many tools could be consolidated (e.g., get_denom_metadata and get_denoms_metadata) reducing the surface.
The tool set is entirely read-only, missing essential write operations like creating sell orders, sending transactions, or modifying credit batches. This is a significant gap for a blockchain server.
Maintenance
Related MCP Connectors
Compliance-gated stablecoin settlement + x402 macro/ESG/climate intelligence for agents. 115 tools.
ERC-8004 agent identity, on-chain subscriptions, reputation, A2A tasks and chat over 53 tools.
Discover, inspect and run 63,000+ agent tools from one balance. Pay per call, no subscriptions.
17 pay-per-call web, finance, legal and onchain tools for AI agents. USDC on Base via x402/MPP.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI agents to retrieve real-time data on wallet DeFi positions, token balances, and NFT holdings across multiple blockchains. It supports hundreds of protocols and provides specialized tools for chain-specific or protocol-specific portfolio analysis.824 npm3MIT

Nexus MCP Serverofficial
AlicenseNot gradedqualityDmaintenanceEnables AI agents to interact with the Nexus blockchain, providing tools for querying blockchain data, smart contract calls, transaction submission, and event monitoring.6MIT- AlicenseBqualityBmaintenanceExposes 17 read-only tools from six XRPL-Utilities services so AI agents can access XRPL wallet analysis, signal feeds, macro telemetry, permissioned asset stacks, RWA tracking, and ETF flow data.41493 npmMIT
- AlicenseBqualityDmaintenanceProvides AI agents with research tools for AI agent ecosystem analysis, DeFi protocol analysis, and general market research.329 npmMIT