Vybog MCP Server
MCP server for the Fund Tracking System, enabling agents to manage lending business data such as entities, borrowers, investors, deals, and referrals with full CRUD and bulk operations.
README
Vybog MCP Server
A standalone Model Context Protocol (MCP) server for the Fund Tracking System. This server enables agents to create, read, update, and delete lending business data (entities, borrowers, investors, deals, referrals) through a standardized interface.
Features
- Entity Management for borrower entities used by borrowers and deals
- Full CRUD Operations on all resources (Entities, Borrowers, Investors, Deals, Referrals)
- Bulk Operations for creating multiple records at once
- Authentication using admin credentials
- MCP Protocol for seamless integration with Claude and other AI agents
- Error Handling and validation
Installation
- Navigate to the server directory:
cd /Users/chiragpatel/Projects/vybog/fts-mcp
- Install dependencies:
npm install
- Create
.envfile from template:
cp .env.example .env
- Configure your environment:
BACKEND_URL=http://localhost:2000
ADMIN_EMAIL=admin@example.com
ADMIN_PASSWORD=admin123
Running the Server
Development mode (with auto-reload):
npm run dev
Production mode:
npm start
The server communicates via stdio and is designed to be invoked by Claude or other MCP clients.
Available Tools
Borrowers
create_borrower- Create a new borrowerlist_borrowers- List all borrowers with paginationget_borrower- Get borrower detailsupdate_borrower- Update borrower informationdelete_borrower- Delete a borrowerbulk_create_borrowers- Create multiple borrowers at once
Entities
create_entity- Create a borrower entitylist_entities- List all borrower entitieslist_unmapped_entities- List entities not currently mapped to borrowers or dealsget_entity- Get entity detailsupdate_entity- Update entity information
Investors
create_investor- Create a new investorlist_investors- List all investorsget_investor- Get investor detailsupdate_investor- Update investor informationdelete_investor- Delete an investorbulk_create_investors- Create multiple investors at once
Deals
create_deal- Create a new lending deallist_deals- List all deals (filterable by status)get_deal- Get deal detailsupdate_deal- Update deal informationdelete_deal- Delete a deal
Referrals
create_referral- Create a referrallist_referrals- List all referralsget_referral- Get referral detailsupdate_referral- Update referraldelete_referral- Delete a referral
Usage Example
When invoked by Claude, you can ask it to:
"Create a borrower entity for TechStart Solutions LLC"
"List all unmapped entities"
"Create 5 borrowers with sample data"
"List all active deals"
"Create a new deal between borrower XYZ and investor ABC"
"Update the status of deal 123 to completed"
"Create bulk investors from this list: [...]"
Seeding
The MCP seed script now creates entities first, then creates borrowers and links each borrower to its matching entity ID when available.
Run it with:
npm run seed
Seeded data currently includes 10 entities, 10 borrowers, 10 investors, 10 deals, and 10 referrals.
Architecture
vybog-mcp-server/
├── src/
│ ├── index.js # Main MCP server implementation
│ └── api-client.js # HTTP client for backend API
├── package.json
├── .env.example
└── README.md
Backend Dependencies
This MCP server requires the fts-be backend service to be running:
- Start the backend:
cd /Users/chiragpatel/Projects/vybog/fts-be
npm run dev
- Ensure MySQL is running (or start Docker container):
docker start mysql-vybog
If Docker container doesn't exist, create it:
docker run --name mysql-vybog -e MYSQL_ROOT_PASSWORD=root -e MYSQL_DATABASE=vybog_db -p 3306:3306 -d mysql:8.0
Integration with Claude
To use this MCP server with Claude in VS Code:
- Configure the MCP server connection in VS Code settings
- Point to this server's
src/index.js - Provide environment variables via
.env
See: https://modelcontextprotocol.io/
Error Handling
The server includes comprehensive error handling:
- Authentication failures are caught and reported
- API errors from the backend are passed through with context
- Bulk operations report partial success/failure
Development Notes
- The server uses stdio for MCP communication (stdin/stdout)
- JWT tokens are automatically obtained and refreshed
- All operations require admin authentication
- The API client is a singleton pattern for token reuse
- Entity tools map to the backend borrower entity routes under
/api/v2/borrower-entity
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。