Stellar Network Monitoring MCP Server is an open-source tool that lets you monitor and analyze the Stellar blockchain network in natural language.
The Model Context Protocol (MCP) is a new, standardized protocol designed to manage context between large language models (LLMs) and external systems. This repository offers an MCP Server for comprehensive Stellar Network monitoring and analysis.
The Stellar Network Monitoring MCP server acts as a bridge between natural language requests and the Stellar Network Monitoring API provided by Obsrvr. Built upon MCP, it translates your requests into the necessary API calls, enabling you to monitor network health, analyze validator performance, investigate issues, and track network diversity seamlessly.
- Natural language network monitoring: Monitor Stellar network health using intuitive, conversational commands
- Comprehensive analysis workflows: Perform complex investigations without knowing API endpoints or data structures
- Real-time network insights: Get up-to-date information about nodes, validators, consensus, and network issues
- Intelligent troubleshooting: Automatically correlate data across multiple network components to identify problems
- Accessibility for all users: Empower users with varying technical backgrounds to understand network status
For example, in Claude Desktop, or any MCP Client, you can use natural language to accomplish things like:
"How is the Stellar network doing? Are there any issues I should know about?"
"Show me the top performing validators and check if any are having problems"
"Analyze OBSRVR's validator health and compare it to other organizations"
"Is the network decentralized enough? What are the geographic and organizational diversity metrics?"
"Why isn't consensus working? Help me troubleshoot the consensus issues"
Note
The Stellar Network Monitoring MCP server provides read-only access to network monitoring data. No sensitive operations or network modifications are possible through this server.
- An MCP Client application (Claude Desktop, Cursor, etc.)
- Node.js (>= v18.0.0) and npm: Download from nodejs.org
Setup via npm:
Add the following JSON configuration within the mcpServers
section of your client's MCP configuration file:
{
"mcpServers": {
"stellar-network-monitoring": {
"command": "npx",
"args": [
"-y",
"stellar-network-monitoring-mcp"
]
}
}
}
For Claude Desktop:
- Open Claude Desktop
- Go to Settings → Developer
- Edit your
claude_desktop_config.json
file:
{
"mcpServers": {
"stellar-network-monitoring": {
"command": "npx",
"args": [
"-y",
"stellar-network-monitoring-mcp"
]
}
}
}
- Save the file and restart Claude Desktop
The server supports both Stellar Mainnet and Testnet:
- Mainnet (default): No additional configuration needed
- Testnet: Set environment variable
STELLAR_NETWORK=testnet
{
"mcpServers": {
"stellar-network-monitoring": {
"command": "npx",
"args": ["-y", "stellar-network-monitoring-mcp"],
"env": {
"STELLAR_NETWORK": "testnet"
}
}
}
}
The server provides intelligent workflow tools that combine multiple data sources for comprehensive analysis:
Complete network health investigation workflow that automatically:
- Checks overall network status and health score
- Detects specific network issues and anomalies
- Identifies failing or problematic nodes
- Provides actionable recommendations
Use when: "Is there a problem with the Stellar network?", "Network health check", "What's wrong with Stellar today?"
Comprehensive validator monitoring and performance analysis:
- Gets current validator status and health
- Ranks validators by performance metrics
- Identifies failing validators
- Analyzes geographic and organizational distribution
Use when: "How are validators performing?", "Show me the top validators", "Are there validator problems?"
Complete organization health analysis with node details:
- Retrieves organization details and contact information
- Analyzes reliability and uptime statistics
- Lists all nodes operated by the organization
- Compares performance with network averages
Use when: "How is [organization] performing?", "What nodes does [organization] run?", "Is [organization] reliable?"
Network decentralization and geographic distribution analysis:
- Analyzes geographic distribution of nodes and validators
- Evaluates organizational diversity and concentration
- Assesses version diversity across the network
- Identifies potential centralization risks
Use when: "How decentralized is Stellar?", "Network diversity analysis", "Is the network centralized?"
Detailed consensus problem diagnosis:
- Analyzes current consensus state and health
- Evaluates quorum set configurations
- Assesses validator participation
- Identifies specific consensus issues
Use when: "Why is consensus failing?", "Consensus health check", "Are there quorum problems?"
get_network_status
: Quick overview of network health and statuscheck_network_consensus
: Analyze consensus health and safetydetect_network_issues
: Identify current network problemsanalyze_network_trends
: Historical network behavior analysisgenerate_network_report
: Comprehensive network health reports
search_nodes
: Find nodes using flexible search criteriacheck_node_health
: Assess health status of specific nodesfind_failing_nodes
: Identify nodes with issues or poor performanceget_validator_nodes
: List validator nodes with voting statuscompare_nodes
: Compare performance between multiple nodesrank_validators
: Rank validators by performance criteria
get_organization_details
: Get detailed organization informationget_organization_nodes
: List nodes operated by specific organizations
- Monitor overall network health and identify issues quickly
- Track validator performance and reliability
- Analyze network diversity and decentralization
- Get alerts about connectivity or consensus problems
- Monitor their nodes' health and performance
- Compare their nodes against network averages
- Get insights about optimal validator configurations
- Track uptime and reliability metrics
- Study network behavior and consensus patterns
- Analyze geographic distribution of infrastructure
- Research validator performance and reliability trends
- Monitor network decentralization metrics
- Check network status before deploying applications
- Monitor transaction processing capabilities
- Analyze network capacity and performance
- Debug connectivity and consensus issues
This server integrates with the Stellar Network Monitoring API provided by Obsrvr:
- Production:
https://radar.withobsrvr.com/api
- Testnet:
https://radar.withobsrvr.com/testnet-api
The server includes comprehensive error handling:
- Rate limiting with automatic backoff
- Network timeout handling
- API error response parsing
- Graceful degradation when services are unavailable
- Node.js (>= v18.0.0)
- npm or yarn
- TypeScript
git clone https://github.com/withObsrvr/stellar-network-monitoring-mcp
cd stellar-network-monitoring-mcp
npm install
npm run build
npm run build
- Build TypeScript to JavaScriptnpm run dev
- Run in development mode with hot reloadnpm test
- Run test suitenpm run lint
- Run ESLintnpm run typecheck
- Run TypeScript type checking
For testing during development:
npm run build
npm run watch # Keep this running for auto-rebuild
node dist/index.js
Then restart your MCP client to test changes.
src/
├── api/ # API client for Stellar network data
├── tools/ # MCP tool implementations
│ ├── network.ts # Network monitoring tools
│ ├── nodes.ts # Node management tools
│ ├── organizations.ts # Organization tools
│ └── workflows.ts # High-level workflow tools
├── types/ # TypeScript type definitions
├── utils/ # Utility functions and logging
└── index.ts # Main server entry point
npm test
Tests cover:
- API client functionality
- Tool implementations
- Error handling
- Type safety
We welcome contributions! Please:
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests for new functionality
- Ensure all tests pass
- Submit a pull request
MIT License - see LICENSE file for details.
- Issues: GitHub Issues
- Documentation: Obsrvr Documentation
- Community: Stellar Community
- Stellar Network - The Stellar blockchain network
- Obsrvr - Comprehensive blockchain infrastructure monitoring
- Model Context Protocol - Protocol for LLM-system integration
- Claude Desktop - AI assistant with MCP support
Built with ❤️ by Obsrvr for the Stellar community.