Somnia MCP Server
Click on "Install 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., "@Somnia MCP Servershow me the latest block height"
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.
Somnia MCP Server
This is the Somnia MCP server implementation. It provides various tools and resources for interacting with blockchain data.
Features
Get information about blockchain blocks
Retrieve token balances and transaction history
Access NFT metadata and ownership details
Fetch transaction details
Modular architecture for easy extension and customization
Related MCP server: MCP Etherscan Server
What can be Built on Top of Somnia MCP Server?
The Somnia MCP server provides a robust foundation for building various applications and services, including:
Decentralized finance (DeFi) applications
Non-fungible token (NFT) marketplaces
Blockchain explorers
Wallets and portfolio trackers
Custom analytics and reporting tools
Even AI assistants that can interact with blockchain data ( AI AGENTS )
Getting Started
To get started with the Somnia MCP server, follow these steps:
Clone the repository:
git clone https://github.com/vastavikadi/somnia-mcp.git cd somnia-mcpInstall dependencies:
npm installConfigure environment variables: Create a
.envfile in the root directory and add your configuration:AUTH_TOKEN=your_auth_tokenNOTE: Replace
your_auth_tokenwith your actual AUTH_TOKEN(That is going to be the ORMI API KEY) from https://subgraph.somnia.network/ by creating an account.Build the server:
npm run server:buildAfter that make to add the mcp server to your MCP Client. In this case, my IDE (VSCode) is MCP Client. So I have to add the server in the mcp.json file present in the .vscode folder.
{ "servers": { "somniamcp": { "type": "stdio", "command": "node", "args": ["build/server.js"], "dev": { "watch": "src//*.ts", "debug": { "type": "node" } }, "cwd": "${workspaceFolder}", "env": { "authToken": "${env:authToken}" } } }, "inputs": [] }You are now ready to start the Somnia MCP server!. Start from the mcp.json file.
Restart the server from mcp.json file to get the fresh tools.
Enjoy using the Somnia MCP server!. If you want to use in Copilot then simply use
#and then the name of the tool you want to use. For example,#getBlockHeightsto use the Get Block Heights tool.
NOTE: You can also run the command
npm run server:devto start the server in development mode with hot-reloading.
or
npm run server:inspectto start the server in the inspect mode.
Contributing
Contributions are welcome! Please open an issue or submit a pull request for any improvements or bug fixes.
Don't forget to give a star to the repository if you find it useful! ⭐
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityDmaintenanceEnables AI agents to interact with the Somnia blockchain network, including documentation search, blockchain queries, wallet management, cryptographic signing, and on-chain operations.Last updated
- AlicenseAqualityDmaintenanceProvides Ethereum blockchain data tools via Etherscan's API, enabling users to check balances, view transactions, track token transfers, fetch contract ABIs and code, monitor gas prices, and resolve ENS names.Last updated7MIT
- AlicenseBqualityDmaintenanceProvides access to Mina blockchain data, enabling queries for events, actions, and network state information through a standardized interface.Last updated34MIT

MCP GetBlock Serverofficial
FlicenseAqualityDmaintenanceEnables querying blockchain data from Ethereum and Solana via GetBlock.io API, including wallet balances, transactions, gas prices, and account information.Last updated61
Related MCP Connectors
Query onchain data across EVM, Solana, Bitcoin, Substrate, and Hyperliquid via the SQD Portal API.
Read-only on-chain intelligence for AI agents on Base: balances, tokens, gas, tx status.
Read-only on-chain intel for AI agents on Base: balances, tokens, gas, tx status. No API keys.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/vastavikadi/somnia-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server