neo
NEO is a model context protocol server designed to facilitate portfolio management and token transactions using blockchain technology.
NEO - 0.0.5913311
Key Details
- Neo Agent Account -> 0.0.5913311
- Mock USDC token -> 0.0.5791936
- Sample topic with test user account -> here
- Token swap for USDC transaction here and here
Building Application
Option 1 via React Native Client
- Clone this repo:
git clone https://github.com/divin3circle/neo.git
- At the root build the MCP server and run the client:
npm run build && npm run mcp-server
- Clone the NSEChain App:
git clone https://github.com/divin3circle/NSEChainBridge.git
- Run the backend:
cd backend && npm run build && NODE_ENV=testnet PORT=5004 node dist/index.js
- Run the frontend:
npx expo run:ios #use android if you're on windows and have Android studio
- Authentication details:
username: Sylus Abel, email: sa44@example.com, password: sam@2002, userId: 680f393882aca3762a5ef9eb
- Navigate to the chat section and begin your conversation with Neo.
Option 2 via Claude Desktop(Recommended)
Docker is required for this step, ensure that the Docker Desktop app is also open and running
- Follow step 1 - 4 above.
- Add neo to the Claude desktop's config.json file. Check this
- Add brave_search and brave_local_search servers to the config file as well. Check this
- You should see 8 tools available.
- Provide these credentials to call any tool.
email: sa44@example.com
username: Sylus Abel
password: sam@2002
privateKey: 302e020100300506032b65700422042037bd51ae06cbc9ac1954c0782bc1830559256d63ddc0d6d45e503aa7fde2e3e3
userId: 680f393882aca3762a5ef9eb
Hedera Account ID: 0.0.5917133
Phone number: #Provide an M-pesa eligible mobile number
Learn about M-Pesa here
Consumptions
To effectively perform rebalancing Neo will uses the following.
On-Chain Data
- User's token balances
- Token prices
- Historical transactions by the user or rebalancing decisions
- Hashes & real-time historical reads using mirror node apis
Off-Chain Data
- NSE Shares & Stock prices held by the user
- New around shares and stocks being held by the user or those of interest to him
- M-Pesa transaction info
- User defined constraints
Actions Logic
Rebalancing
Neo will perform a portfolio rebalance when one or more of the following conditions/actions are triggered:
- Portfolio deviates from target allocations or user constraints
- Market volatility suggest safe diversifications
- A sentiment shift in the market or news flag a risky holding
The steps for rebalancing is as follows but not restricted to:
- Fetch current portfolio balances from a user's Hedera account and broker portfolio
- Compare the portfolio against user's target allocation or an AI model or both
- Calculate required actions, swap over-presented tokens for USDC or other under-presented tokens
- Estimate fees and slippage
- Prepare and sign the transaction using Hedera Agent Kit with user's prior consent
- Log the rebalancing action into the user-agent or agent-agent private topic
Minting/Redeeming
Minting of tokens would be against user's deposited fiat or USDC holding within the app. Similarly redeeming would be to USDC or fiat that can be withdrawn to M-pesa by the user.
Criteria
Just as the rebalancing logic, Neo will check the user's current holding stocks-wise and token wise, previous logs and their outcomes plus market sentiment and news flags to determine the best action to perform on a token/share in holding by the user.
Documentation
Logging & Learning
Each action, i.e. rebalancing, minting or redeeming by Neo will be logged to HCS as a topic, and or saved in a database for learning purposes and review. With these memory Neo can get smarter without the need to train while adapting to a user's specific habits, appetite and the market it finds itself in. The goal is to have Neo capable of executing transactions on the blockchain, able to justify decision and learn from old mistakes to continuously improve.
Neo creates a topic with the HIP 991 standard, with a custom fee of 0.1 USDC(now they user has a reason to deposit USDC via M-Pesa). Each user prompts is treated a message subscription paid to the AI agent. The communication is done over HCS-10.
Related MCP Servers
View all finance servers →mcp-server
by financial-datasets
This is a Model Context Protocol (MCP) server that provides access to stock market data from Financial Datasets.
evm-mcp-server
by mcpdotdirect
A comprehensive Model Context Protocol (MCP) server that provides blockchain services across multiple EVM-compatible networks.
razorpay-mcp-server
by razorpay
The Razorpay MCP Server is a Model Context Protocol server that integrates with Razorpay APIs for advanced payment processing.
investor-agent
by ferdousbhai
The investor-agent is a Model Context Protocol server designed to provide comprehensive financial insights and analysis to Large Language Models.
mcp-cn-a-stock
by elsejj
This is an MCP (Model Content Protocol) service providing A-share data for large models.
base-mcp
by base
A Model Context Protocol (MCP) server that provides onchain tools for AI applications like Claude Desktop and Cursor, allowing them to interact with the Base Network and Coinbase API.