letters-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@letters-mcp Post a message for 2050: be kind to each other."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
📜 letters-mcp
An official Model Context Protocol (MCP) server that lets AI clients (Claude Desktop, Cursor, Antigravity, OpenCode) interact directly with Letters to the Future — a decentralized application on Base mainnet where anyone can post time-locked messages into the future or mint them as permanent on-chain SVG NFTs via natural language.
🌟 Natural Language Prompt Examples
With this MCP server connected to your AI assistant, you can simply type:
"Post a message for the year 2100: I hope humanity figured out sustainable energy."
"Leave an anonymous note that unlocks in 50 years: we were trying our best."
"Show me the latest 20 letters left by others on Base."
"Mint an on-chain SVG NFT: to whoever finds this — hello from 2026."
"How many letters have been posted so far to date?"
Related MCP server: Solafon MCP
📦 Installation & Setup
Option 1: Claude Desktop Integration
Add the following to your Claude Desktop configuration file:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"letters": {
"command": "node",
"args": ["C:/Users/ad/.gemini/antigravity/scratch/letters-mcp/bin/letters-mcp.js"],
"env": {
"PRIVATE_KEY": "0xyour_base_private_key_here"
}
}
}
}Option 2: Cursor Integration
In Cursor Settings > Features > MCP:
Name:
lettersType:
commandCommand:
node C:/Users/ad/.gemini/antigravity/scratch/letters-mcp/bin/letters-mcp.js
🛠️ MCP Tools Reference
Tool | Description | Parameters |
| Post an on-chain letter to the future. |
|
| Fetch recent on-chain letters. Locked ones show unlock date. |
|
| Query total number of letters posted to date. | None |
| Query a specific message by numerical ID. |
|
| Mint an on-chain SVG Letter NFT (0.001 ETH). |
|
| List all Letter NFTs owned by a wallet. |
|
| Check configured agent wallet address and Base ETH balance. | None |
⛓️ Base Network Contracts
Network: Base Mainnet (Chain ID:
8453)Letters V2 Contract:
0x8FeF460431Ae853fA74fA53f9B005de5cb9Df0EFLetter NFT Contract:
0x3C01937B5d7a800C960170F9AF47aBB4237CB6C6RPC Endpoints:
https://mainnet.base.org,https://base.llamarpc.com
⌨️ CLI Usage
# Query total letters on Base
node bin/letters-cli.js count
# Browse recent letters
node bin/letters-cli.js list 10
# Post a letter time-locked for 50 years
node bin/letters-cli.js post "Hello from 2026!" 50 false
# Mint an on-chain SVG Letter NFT (0.001 ETH)
node bin/letters-cli.js mint "A digital time capsule in SVG."
# Launch Interactive Web Studio
npm run studio
# Open http://localhost:3403🔒 Security
Your private key is loaded strictly from the PRIVATE_KEY environment variable and is used only to sign transactions locally via Ethers.js. It is never transmitted anywhere other than directly to the Base RPC endpoint as a signed raw transaction.
🚀 How to Publish to GitHub
git init
git add .
git commit -m "feat: initial commit for letters-mcp on Base"
git branch -M main
git remote add origin https://github.com/yappermoar-boop/letters-mcp.git
git push -u origin main📄 License
MIT License. Open source software.
Available Tools
7 toolsget_message_by_idB
Fetch a specific message by its unique message ID.
Inputs: id (required).
get_message_countA
Get the total number of on-chain letters/messages posted to date on Base.
Inputs: no named parameters.
get_my_nftsA
List all Letter NFTs owned by the configured wallet or a specified address on Base.
Inputs: address.
get_wallet_infoA
Get the configured agent EVM wallet address and its Base ETH balance.
Inputs: no named parameters.
list_messagesA
Fetch recent on-chain messages from the Letters to the Future dApp on Base. Locked messages show their unlock date instead of text.
Inputs: limit, offset.
mint_letter_nftA
Mint a Letter NFT on Base mainnet (0.001 ETH). The message is permanently rendered and stored 100% on-chain as an SVG image.
Inputs: content (required).
post_messageB
Post an on-chain message to the Letters to the Future dApp on Base. You can optionally time-lock it into the future or post anonymously.
Inputs: content (required), anonymous, unlockYears.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Each tool maps to a clearly distinct action and resource: posting, listing, counting, fetching by ID, minting an NFT, listing NFTs, and wallet info. The only mild overlap is between list_messages, get_message_count, and get_message_by_id, but their boundaries are clear from names and descriptions.
All names follow a consistent snake_case verb_noun pattern (post_message, list_messages, get_message_count, get_message_by_id, mint_letter_nft, get_my_nfts, get_wallet_info). The only minor stylistic quirk is 'my' in get_my_nfts, but it remains readable and predictable.
Seven tools is well-scoped for a dApp that posts messages and mints NFTs on Base. Each tool corresponds to a meaningful operation without redundancy or filler.
The surface covers the core lifecycle: posting, reading, counting, minting, and wallet/NFT inspection. Minor gaps exist around fetching a specific NFT by token ID or viewing richer NFT metadata, but agents can work around these with the current tools.
Maintenance
Related MCP Connectors
MCP server for AI agents to discover campaigns by humans and donate USDC directly on Base.
OpenAI-compatible LLM MCP (7 tools); chat via balance key or x402 USDC on Base
MCP server for X420's pay-per-call agent services (x402, USDC on Base, paid from your own wallet).
MCP server for the Z1N Protocol - on-chain identity for AI agents on Polygon
Related MCP Servers
- AlicenseBqualityDmaintenanceAn MCP server that enables LLMs to perform blockchain operations on the Base network through natural language commands, including wallet management, balance checking, and transaction execution.43MIT
- AlicenseBqualityDmaintenanceAn MCP server for building AI-powered bots and interacting with Solana wallets on the Solafon platform. It enables users to manage messages, check token balances, and handle transactions through natural language in MCP-compatible AI tools.172 npmMIT
- AlicenseAqualityBmaintenanceMCP server for managing on-chain loyalty programs on Base L2. Mint tokens, manage rewards, track balances, tiers and marketplace offers via standard MCP protocol.1720 npm1MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server that enables AI-driven on-chain interactions with the Zora Protocol on Base, supporting token queries, swaps, and transfers via natural language.20 npm2MIT