Are you the author? Sign in to claim
pixi-midnight-mcp
A Model Context Protocol (MCP) server implementation with STDIO transport for the Midnight network.
This server implements the Model Context Protocol for integration with the Midnight cryptocurrency network. It provides a standard interface for AI models to interact with the Midnight blockchain, wallet functionality, and other network services.
The architecture consists of two main components:
server.ts) - An Express.js HTTP server that runs the wallet logic and exposes REST API endpointsstdio-server.ts) - An MCP-compliant server that acts as a proxy, forwarding tool calls to the wallet server via HTTP requests# Install dependencies
yarn install
# Build
yarn build
# Set up a new agent
yarn setup-agent -a <agent-name>
# Or set up with a specific hex seed (32-byte entropy)
yarn setup-agent -a <agent-name> -s "your-hex-seed-here"
# Or set up with a BIP39 mnemonic phrase
yarn setup-agent -a <agent-name> -m "abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon about"
# Follow the instructions in the terminal
Note: The setup scripts support both hex seeds (32-byte entropy) and BIP39 mnemonic phrases. The hex seed is the actual entropy used by the Midnight wallet, while the mnemonic is a human-readable representation of the same cryptographic material.
For detailed setup instructions, see docs/setup-guide.md.
midnight-mcp/
├── src/ # Source code
│ ├── mcp/ # MCP protocol implementation
│ ├── wallet/ # Wallet management
│ ├── logger/ # Logging system
│ ├── audit/ # Audit trail system
│ └── server.ts # Express server
├── test/ # Test suites
│ ├── unit/ # Unit tests
│ ├── integration/ # Integration tests
│ └── e2e/ # End-to-end tests
├── docs/ # Documentation
│ ├── index.md # Documentation index
│ ├── system-design.md # Architecture & API flows
│ ├── setup-guide.md # Complete setup guide
│ └── wallet-mcp-api.md # API reference
├── scripts/ # Setup and utility scripts
├── agents/ # Agent-specific configurations
└── docker-compose.yml # Docker deployment
The Midnight MCP server follows a layered architecture:
For detailed architecture diagrams and API flows, see docs/system-design.md.
For complete documentation, including setup guides, API reference, testing, and integration examples, see docs/index.md.
This project is licensed under the MIT License.
Run Claude Code as an MCP server so any agent can delegate coding tasks to it
Browser automation using accessibility snapshots instead of screenshots
Google's universal MCP server supporting PostgreSQL, MySQL, MongoDB, Redis, and 10+ databases
Official GitHub integration for repos, issues, PRs, and CI/CD workflows