Installation
- Install the Bankless Onchain MCP package:
npm install @bankless/onchain-mcp
Environment Setup
- Set your Bankless API token:
- Obtain your Bankless API token from Bankless API Documentation.
- Set the environment variable:
export BANKLESS_API_TOKEN=your_api_token_here
Running the Server
- Run the MCP server:
npx @bankless/onchain-mcp
Development
-
Building from Source:
- Clone the repository:
git clone https://github.com/Bankless/onchain-mcp.git
cd onchain-mcp
- Install dependencies:
npm install
- Build the project:
npm run build
-
Debug Mode:
npm run debug
Integration with AI Models
- Configure MCP Server in your application:
{
"mcpServers": {
"bankless": {
"command": "npx",
"args": [
"@bankless/onchain-mcp"
],
"env": {
"BANKLESS_API_TOKEN": "your_api_token_here"
}
}
}
}
License
npm install @bankless/onchain-mcp
- Obtain your Bankless API token from Bankless API Documentation.
- Set the environment variable:
export BANKLESS_API_TOKEN=your_api_token_here
npx @bankless/onchain-mcp
Building from Source:
- Clone the repository:
git clone https://github.com/Bankless/onchain-mcp.git cd onchain-mcp - Install dependencies:
npm install - Build the project:
npm run build
Debug Mode:
npm run debug
{
"mcpServers": {
"bankless": {
"command": "npx",
"args": [
"@bankless/onchain-mcp"
],
"env": {
"BANKLESS_API_TOKEN": "your_api_token_here"
}
}
}
}
MIT