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
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.