
A stateless streamable HTTP MCP server for interacting with the official source of government spending data.

A proof-of-concept MCP server that verifies access to digital resources and enables payment in SOL via the Solana blockchain.
MCP server for paid Solana content access is cataloged as an MCP server attributed to waifuai. A proof-of-concept MCP server that verifies access to digital resources and enables payment in SOL via the Solana blockchain. It is categorized under finance crypto. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.
Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for MCP server for paid Solana content access are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
It responds with access false, a payment required message, and a solana-action URL containing the amount and resource ID.
No, has_paid_for_access is described as a placeholder that would in a real application query a database of payment records.
The client or user's wallet must sign the transaction with the user's private key; the server does not handle signing.
README.md · f520e723dd2e · Fetched 2026-11-13 10:57:31 UTC
Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.
Showing the last retrieved documentation snapshot; check the source for current changes.
This project demonstrates a proof-of-concept implementation of an MCP server that integrates with the Solana blockchain to enable paid access to digital content and resources using direct SOL payments. It showcases how MCP can be combined with a blockchain to create decentralized, permissionless access control systems.
The project consists of two main components:
server.py): This is the core MCP server, built using the fastmcp library. It handles MCP requests, manages resource access, and interacts with the Solana blockchain.payments.py): A Flask-based API that handles the creation of payment transactions. This is integrated within the MCP server itself (using Flask blueprints), simplifying deployment and interaction. This approach makes it easy to create "solana-action:" URIs, as described in the MCP specification.The server exposes an MCP resource (access://check) that checks if a user has paid for access to a given resource. If payment is required, it returns a solana-action: URL that the MCP client can use to initiate a payment transaction. The process_payment tool allows an MCP client to submit a signed Solana transaction, completing the payment.
solders library for efficient and idiomatic interaction with the Solana blockchain.pytest and pytest-asyncio to verify basic functionality.Prerequisites:
solana-test-validator (for local testing)Clone the Repository:
git clone <repository_url>
cd mcp-solana-internet
Install Dependencies:
poetry install
Environment Setup:
Create a .env file in the mcp_solana_internet directory:
touch mcp_solana_internet/.env
Edit the .env file and set the following variables:
RPC_ENDPOINT="http://localhost:8899" # Or your Solana cluster endpoint
PAYMENT_WALLET_SEED="1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1"
# ^^^ **IMPORTANT:** This is a placeholder for demonstration purposes ONLY.
# In a production environment, you MUST use a secure key management solution
# (e.g., AWS KMS, HashiCorp Vault, or a hardware wallet). Never store private
# keys or seeds directly in code or configuration files. This seed generates
# the wallet address.
RPC_ENDPOINT: The URL of your Solana RPC endpoint. For local development, you can use http://localhost:8899 if you're running solana-test-validator. For testing against devnet, use https://api.devnet.solana.com.PAYMENT_WALLET_SEED: A comma-separated list of 32 integers representing the seed for the payment wallet. This wallet will receive the SOL payments. Again, this is insecure and for demonstration only.Start the Solana Test Validator (for local testing):
solana-test-validator
This starts a local Solana cluster that you can use for testing.
Start the MCP Server:
poetry run python mcp_solana_internet/server.py
The server will start listening for MCP requests on stdin and stdout (stdio transport). It also starts the Flask payment API on port 5001.
Interacting with the Server (Conceptual Example):
An MCP client would interact with the server as follows:
Check Access: The client sends an MCP request to access://check with the user's public key and the resource ID.
Payment Required: If the user hasn't paid, the server responds with a JSON object containing:
access: falsemessage: "Payment required."payment_url: A solana-action: URI pointing to the /process_payment_action endpoint, including the required amount and resource ID as query parameters (e.g., solana-action:/process_payment_action?amount_sol=0.1&resource_id=resource_1).Payment Transaction Creation:
payment_url from the previous response. This url includes the amount and resource_id.POST request to /process_payment_action including the user's public key, amount_sol and resource_id.PAYMENT_WALLET. The API returns the serialized, unsigned transaction as a hex string.Transaction Signing (Client-Side): The client (e.g., the user's wallet software) must sign the transaction using the user's private key. This signing step is crucial for security and is not handled by the server.
Submit Payment: The client sends the signed transaction to the Solana network. This can be achieved with the solana cli tool, or programatically through libraries like solana-py or solders.
The client then calls the process_payment tool on the MCP server, passing in the transaction signature (not the full transaction) as the payment_transaction parameter, along with the amount_sol, client_ip and resource_id. The server validates this signature by retrieving the full transaction from the blockchain, checking the amount, destination, etc.
Re-check Access: After the payment is confirmed, the client can again send an MCP request to access://check. This time, if the payment has been processed, the server should respond with {"access": true}.
mcp_solana_internet/:
server.py: The main MCP server implementation.payments.py: The Flask API for handling payment transaction creation.utils.py: (Currently empty) A placeholder for utility functions.tests/:
integration/: Integration tests for the server.pyproject.toml: Project metadata and dependencies (managed by Poetry).pytest.ini: Configuration for pytest..gitignore: Specifies files and directories to be ignored by Git.README.md: This file.server.pyRPC_ENDPOINT: The Solana RPC endpoint URL.PAYMENT_WALLET: The Keypair object representing the wallet that receives payments.LAMPORTS_PER_SOL: The conversion factor between SOL and Lamports (the smallest unit of SOL).get_resource_price(resource_id): A helper function that returns the price (in SOL) for a given resource ID. This is a placeholder and should be replaced with a more robust pricing mechanism (e.g., fetching prices from a database or an oracle).has_paid_for_access(user_pubkey, resource_id): A placeholder function that checks if a user has paid for access to a resource. In a real application, this would involve querying a database of payment records.@mcp.resource("access://check"): The MCP resource handler for checking access. It takes the user's public key and the resource ID as input.@mcp.tool(): Defines the process_payment tool which validates the user's payment transaction signature.mcp.flask_app.register_blueprint(payments_blueprint) integrates the Flask payment API directly into the MCP server.payments.pypayment_app: The Flask application (blueprint) for the payment API./process_payment_action (GET): An endpoint that returns metadata describing the payment action, conforming to the MCP action format./process_payment_action (POST): An endpoint that takes the amount, resource ID, and user's public key as input, and returns a serialized, unsigned Solana transaction for a direct SOL transfer.tests/integration/test_server.pytest_access_check_no_payment: Tests the access://check resource when the user has not paid.test_access_check_invalid_pubkey: Tests the access://check resource with an invalid public key.test_access_check_paid: Simulates a paid user (currently, has_paid_for_access always returns False, so this test expects access to be denied).has_paid_for_access function with a database query to store and retrieve payment records. This would involve:
process_payment tool to perform more thorough validation of the payment transaction, including:
PAYMENT_WALLET.payments.py API (e.g., requiring a signed message from the user).This README provides a comprehensive overview of the project, its features, installation instructions, usage examples, and potential improvements. It aims to be informative and helpful for developers interested in understanding and extending the project. The emphasis on security and the clear distinction between placeholder implementations and production-ready solutions are also crucial.
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for MCP server for paid Solana content access from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/mcp-solana-internet)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.
No reviewed package or image identity; download statistics are not listed yet.
Alternative and complementary servers in the same category

A stateless streamable HTTP MCP server for interacting with the official source of government spending data.

A hosted, remote MCP server for Fortnox that lets AI assistants answer questions from a company's bookkeeping and propose changes for approval before writing them.

OptimistFi is a read-only remote MCP server that provides perpetual futures market data, perps prop firm rules and pricing, and US equity investment research.