Provides access to Bitcoin Stamps data, allowing queries for stamp information, collections, and SRC-20 token deployment and minting data on the Bitcoin blockchain.
Offers code generation for Express API endpoints that interact with Bitcoin Stamps data, including search functionality and rate limiting.
Provides assistance for integrating Bitcoin Stamps data into Next.js applications, particularly for SRC-20 token display and management.
Enables integration with PostgreSQL databases for storing and querying Bitcoin Stamps metadata and collection statistics.
Includes integration with Postman collections for exploring and testing the Stampchain API endpoints.
Offers code generation and integration assistance for building React components that display Bitcoin Stamps data, including galleries and collection dashboards.
Supports Redis integration for caching stamp data in backend services to improve performance of stamp-related applications.
Provides code generation for UI components styled with Tailwind CSS to display Bitcoin Stamps data and collections.
Supports generation of Vue.js components for Bitcoin Stamps integration, including gallery components that display stamp data.
Stampchain MCP Server
A Model Context Protocol (MCP) server for interacting with Bitcoin Stamps data via the Stampchain API. This server provides tools for querying stamp information, collections, and blockchain data without requiring API authentication.
📋 Table of Contents
- 🚀 Quick Start
- ⚙️ IDE Configuration
- 👨💻 Developer Use Cases
- 🔧 Development
- 📚 Documentation
- 🤝 Contributing
- 📞 Support
- 📄 License
🎯 What This MCP Server Provides
- 🖼️ Stamp Query Tools: Search and retrieve information about Bitcoin Stamps
- 📦 Collection Explorer: Browse and analyze stamp collections
- 🪙 Token Information: Access SRC-20 token deployment and minting data
- 🤖 AI-Powered Integration: Generate code and get development assistance
- 📡 Real-time Data: Access live Stampchain API data through your IDE
🚀 Quick Start
Prerequisites
- Node.js 18.0 or higher
- npm or yarn package manager
- Claude Desktop, Cursor, Windsurf, or Claude Code IDE
Installation
One-Line Install (Recommended)
This will:
- Install all dependencies
- Build the project
- Automatically configure Claude Desktop (if installed)
Manual Installation
For Development
⚙️ IDE Configuration
The Stampchain MCP server can be configured with various AI-powered IDEs that support the Model Context Protocol. Below are configuration instructions for popular IDEs.
Claude Desktop
Add to your Claude Desktop configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/claude/claude_desktop_config.json
Cursor IDE
Add to your Cursor settings (File > Preferences > Settings > Extensions > MCP
):
- Open Cursor settings (JSON) by pressing
Cmd/Ctrl + Shift + P
and selecting "Preferences: Open Settings (JSON)" - Add the MCP configuration:
Alternatively, create an .mcp/config.json
file in your workspace root:
Windsurf IDE
Configure MCP in Windsurf by adding to your workspace settings:
- Create or edit
.windsurf/mcp.json
in your workspace:
- Or configure globally in Windsurf settings (
Settings > AI Assistant > MCP Servers
).
Claude Code (VS Code Extension)
For the Claude Code extension in VS Code:
- Open VS Code settings (
Cmd/Ctrl + ,
) - Search for "Claude Code MCP"
- Add server configuration:
Or add to your workspace .vscode/settings.json
:
Universal MCP Configuration
For IDEs that support standard MCP configuration, create an mcp.json
file in your project root:
Configuration Tips
- Path Resolution:
- Use absolute paths for global installations
- Use
${workspaceFolder}
or relative paths for workspace-specific setups - On Windows, use forward slashes or escape backslashes
- Environment Variables:
STAMPCHAIN_API_URL
: API endpoint (default: https://stampchain.io/api/v2)API_TIMEOUT
: Request timeout in milliseconds (default: 30000)DEBUG
: Enable debug logging withstampchain-mcp:*
- Development vs Production:
- For development, point to
dist/index.js
after building - For production, consider using the npm-installed version
- For development, point to
- Verification:
- After configuration, restart your IDE
- Check the MCP server status in your IDE's output/console
- Test with a simple query like "get stamp 0"
👨💻 Developer Use Cases
The Stampchain MCP server enables developers to quickly integrate Bitcoin Stamps data into their applications through AI assistance. Here are common developer scenarios:
🔍 Data Integration Tasks
Ask Claude to help you:
Fetch All Stamps for Your App:
- "Help me integrate the Stampchain API to fetch all stamps and display them in a React component"
- "Create a Python script to retrieve stamps and save them to a PostgreSQL database"
- "Build a Vue.js gallery component that shows the latest 50 stamps with pagination"
SRC-20 Token Integration:
- "Generate code to display SRC-20 tokens on my website based on my Next.js codebase"
- "Create an API endpoint that fetches token balances for a given Bitcoin address"
- "Build a token dashboard component showing supply, holders, and recent transfers"
Collection Analytics:
- "Help me build a collections analytics page showing volume and floor prices"
- "Create a collection ranking system based on holder count and activity"
- "Generate a chart component displaying collection trends over time"
🛠 Code Generation Examples
The MCP server can help generate production-ready code for:
Frontend Components:
Backend Services:
Database Integration:
📊 Analytics & Monitoring
Real-time Data Processing:
- "Help me set up WebSocket connections to monitor new stamp creations"
- "Create a data pipeline that processes stamp transactions and updates analytics"
- "Build alerting for specific stamp activities or price movements"
Custom Dashboards:
- "Generate a trading dashboard showing stamp market activity"
- "Create admin panels for managing stamp collections"
- "Build user portfolio pages showing owned stamps and values"
🎯 Integration Patterns
E-commerce Integration:
Portfolio Tracking:
Social Features:
🚀 Quick Start Queries
Once you have the MCP server configured, try these developer-focused prompts:
Getting Started:
- "Show me how to fetch the 10 most recent stamps and explain the data structure"
- "What's the best way to integrate stamp data into a JavaScript application?"
- "Help me understand the SRC-20 token API endpoints and response formats"
Code Review & Optimization:
- "Review my stamp fetching code and suggest performance improvements"
- "Help me add error handling to my Stampchain API integration"
- "Optimize my database queries for stamp search functionality"
Architecture Planning:
- "Design a scalable architecture for a stamp trading platform"
- "What's the best caching strategy for stamp metadata?"
- "Help me plan a microservices architecture for stamp analytics"
📚 API Reference & Testing
Postman Collection: Explore the complete Stampchain API with our comprehensive Postman collection:
- Collection Link: Stampchain OpenAPI 3.0
- Test all endpoints interactively
- View request/response examples
- Copy code snippets for your preferred language
- Understand API parameters and data structures
Using with the MCP Server:
💡 Pro Tips for Developers
- Start with Postman: Test API endpoints in the Postman collection before coding
- Specify Your Tech Stack: Mention your framework, database, and tools for tailored code generation
- Include Context: Share relevant parts of your existing codebase for better integration
- Reference API Docs: Point Claude to specific Postman endpoints when asking for help
- Ask for Testing: Request unit tests and integration tests along with your code
- Request Documentation: Ask for API documentation and code comments
- Iterate and Refine: Build incrementally - start simple and add features
🔧 Development
Development Workflow
- Run in development mode:
- Run tests:
- Build for production:
Architecture Overview
The system follows a Model Context Protocol (MCP) server architecture with:
- Protocol: MCP SDK for tool exposure
- Language: TypeScript/Node.js
- API Client: Axios for Stampchain API communication
- Authentication: None required (public API)
- Deployment: Local via Claude Desktop or standalone Node.js
For detailed architecture documentation, see architecture/README.md.
📚 Documentation
API Documentation
The project exposes MCP tools for Stampchain data access. For complete API documentation, see:
Stampchain API Base URLs
- Main API:
https://stampchain.io/api/v2
- Public endpoints (no authentication required)
Testing
The project uses Jest for testing. For testing documentation, see:
Running Tests
Deployment
For deployment instructions, see:
Environment Configuration
The project requires minimal configuration:
🤝 Contributing
- Documentation: Update documentation for any changes
- Testing: Ensure all tests pass before submitting changes
- Code Quality: Follow the established linting and formatting rules
- MCP Standards: Follow MCP SDK best practices for tool implementation
Development Guidelines
- Follow TypeScript best practices
- Use the established project structure
- Write tests for new functionality
- Update documentation for API changes
- Use the delegation templates for complex tasks
📞 Support and Resources
- Stampchain API: https://stampchain.io/api/v2
- MCP SDK Documentation: https://modelcontextprotocol.io
- Documentation: This docs directory contains all project documentation
- Issue Tracking: GitHub Issues
- Bitcoin Stamps Info: https://stampchain.io
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
Project Version: 0.1.0
Last Updated: 2025-01-19
Documentation Version: 1.0
This server cannot be installed
A Model Context Protocol server that enables interaction with Bitcoin Stamps data via the Stampchain API, providing tools for querying stamp information, collections, and blockchain data without requiring authentication.
Related MCP Servers
- AsecurityAlicenseAqualityFacilitates interaction with the Bitcoin network via the Model Context Protocol, enabling key generation, address validation, transaction decoding, and blockchain data retrieval.Last updated -510318TypeScriptMIT License
- AsecurityAlicenseAqualityA Model Context Protocol server that provides read-only access to Bybit's cryptocurrency exchange API, allowing users to query real-time cryptocurrency data using natural language.Last updated -9149TypeScriptMIT License
- -securityFlicense-qualityA Model Context Protocol server providing tools for querying Bitcoin blockchain data via Blockchain Data and Query APIs, supporting various BTC information retrieval functions.Last updated -Python
- -securityAlicense-qualityA Model Context Protocol server that exposes Binance cryptocurrency exchange data to LLMs, allowing agents to access real-time prices, order books, and historical market data without requiring API keys.Last updated -4PythonMIT License