home / mcp / moralis mcp server
Provides a local or cloud MCP server that translates natural prompts into Moralis REST API calls for blockchain data.
Configuration
View docs{
"mcpServers": {
"moralisweb3-moralis-mcp-server": {
"command": "npx",
"args": [
"@moralisweb3/api-mcp-server"
],
"env": {
"MORALIS_API_KEY": "YOUR_API_KEY"
}
}
}
}Moralis MCP Server is a TypeScript-based engine that translates natural language prompts into Moralis REST API calls, enabling AI models to fetch wallet activity, token metrics, dapp usage, and more with no custom SQL or code. It runs locally or in the cloud and is designed to be fully pluggable and easy to integrate with OpenAI, Claude, or open-source models.
Connect your AI agent or client to the Moralis MCP Server by running it as a subprocess from your client configuration. You will need to provide your Moralis API key and point the client to the MCP server so prompts are translated into Moralis API calls.
Prerequisites: Install Node.js and npm on your machine. Ensure you have a working terminal or command prompt.
Install dependencies for development and build the server, then run in watch mode for auto-rebuilds.
npm install
npm run build
npm run watchConfiguration and usage details are provided below. The main way to run the MCP server locally is via a stdio-based setup that starts a local process and communicates over standard input/output.
Security: Protect your Moralis API key. Set it as an environment variable when starting the server or configure it in your client’s MCP settings.
Debugging: Use the MCP Inspector to access debugging tools and inspect the flow between prompts and Moralis API calls.
Client prompts: You can send natural language prompts like “What is wallet X’s trading history?” and the MCP server translates them into Moralis REST API calls.
Debugging tool to inspect MCP server prompts, translations, and responses via an accessible browser interface.