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 and SRC-20 token data via the Stampchain API. This server provides MCP-compatible clients with tools to query Bitcoin Stamps, collections, and SRC-20 tokens.
Features
- Bitcoin Stamps Tools: Get stamp details, search stamps, and retrieve recent stamps
- Stamp Collections: Query collections and search through collection data
- SRC-20 Tokens: Get token information and search through SRC-20 tokens
- Type-safe: Built with TypeScript and Zod validation
- Comprehensive Testing: Full test coverage with CI validation
- Configurable: Flexible configuration options for different environments
- Cross-platform: Works on Ubuntu, Windows, and macOS with Node.js 18+
Quick Start
Prerequisites
- Node.js 18+
- npm or yarn
Installation
- Clone the repository:
- Install dependencies:
- Build the project:
- Test the installation:
MCP Client Integration
Claude Desktop
To use with Claude Desktop, add the following to your
claude_desktop_config.json
:
Alternative: Using npx (recommended)
For easier setup without local installation:
Note: Replace /path/to/stampchain-mcp
with the actual path to your
installation directory.
Other MCP Clients
This server implements the standard MCP protocol and can be used with any MCP-compatible client. Refer to your client's documentation for specific configuration instructions. The server accepts connections via stdio transport.
Available Tools
Bitcoin Stamps
get_stamp
- Get detailed information about a specific stamp by IDsearch_stamps
- Search stamps with various filters (creator, collection, etc.)get_recent_stamps
- Get the most recently created stamps
Stamp Collections
get_collection
- Get detailed information about a specific collectionsearch_collections
- Search collections with filters
SRC-20 Tokens
get_token_info
- Get detailed information about a specific SRC-20 tokensearch_tokens
- Search SRC-20 tokens with various filters
Configuration
The server can be configured through:
- Configuration file (JSON format)
- Environment variables
- Command line arguments
Example Configuration File
Environment Variables
STAMPCHAIN_API_URL
- API base URL (default: https://stampchain.io/api)STAMPCHAIN_LOG_LEVEL
- Logging level (debug, info, warn, error)STAMPCHAIN_API_TIMEOUT
- API timeout in milliseconds
Command Line Usage
Development
Scripts
npm run dev
- Start development server with hot reloadnpm run build
- Build the TypeScript projectnpm run test
- Run all testsnpm run test:watch
- Run tests in watch modenpm run test:coverage
- Run tests with coverage reportnpm run typecheck
- TypeScript type checkingnpm run format
- Format code with Prettiernpm run validate
- Full validation suite
Testing
The project includes comprehensive test coverage:
Project Structure
API Reference
Tool Parameters
All tools accept various parameters for filtering and pagination:
limit
- Number of results to return (default: 10, max: 100)page
- Page number for pagination (default: 1)sort
- Sort field and direction (e.g., "created_desc")
Response Format
All tools return structured data with:
success
- Boolean indicating if the request was successfuldata
- The requested data (stamps, collections, tokens)pagination
- Pagination information when applicableerror
- Error details if the request failed
Troubleshooting
Common Issues
- Build Errors: Ensure you have Node.js 18+ and run
npm install
first - Connection Issues: Check that the Stampchain API is accessible
- MCP Client Integration: Verify the path in your configuration file is correct
Debugging
Enable debug logging to see detailed information:
Or set the log level in your configuration:
Development
Test Coverage
This project maintains comprehensive test coverage across multiple areas:
- ✅ Unit Tests - Core utilities and helper functions
- ✅ Integration Tests - MCP server functionality
- ✅ API Validation - Ensures v2.3 API compatibility
- ✅ Schema Validation - TypeScript and Zod schema alignment
- ✅ Cross-platform - Tested on Ubuntu, Windows, and macOS
- ✅ Multi-version - Node.js 18.x, 20.x, and 22.x support
- ✅ Real API Testing - Validates against live Stampchain API v2.3
Detailed Testing Commands
Development Workflow
- Install dependencies:
npm install
- Start development server:
npm run dev
- Run tests in watch mode:
npm run test:watch
- Validate before commit:
npm run validate
Contributing
- Fork the repository
- Create a feature branch:
git checkout -b feature/new-feature
- Make your changes
- Run tests:
npm test
- Commit your changes:
git commit -am 'Add new feature'
- Push to the branch:
git push origin feature/new-feature
- Submit a pull request
Code Style
- Use TypeScript for all new code
- Follow TypeScript strict mode guidelines
- Write tests for new features
- Update documentation as needed
- Run
npm run validate
before submitting PRs
License
MIT License - see LICENSE file for details.
Support
- Issues: GitHub Issues
- Documentation: Stampchain API Docs
- Community: Telegram @BitcoinStamps
Changelog
v0.2.0
- Stampchain API v2.3 Compatibility: Updated schemas and validation for latest API
- Enhanced Testing: Comprehensive test suite with cross-platform CI validation
- Improved Documentation: Professional README with status badges and better organization
- Simplified Development: Streamlined validation pipeline (TypeScript + Prettier)
- Bug Fixes: Resolved CI issues and schema validation improvements
v0.1.0
- Initial release
- Basic Bitcoin Stamps, Collections, and SRC-20 tools
- MCP client integration
- Comprehensive test suite
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
Tools
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 -563556TypeScriptMIT 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 -9512TypeScriptMIT 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 -1Python
Satstream MCP Serverofficial
AsecurityAlicenseAqualityA Model Context Protocol server that enables querying Bitcoin blockchain data, including address information, transaction details, mempool statistics, and ordinals/runes data through the Satstream API.Last updated -37TypeScriptMIT License