@kedoupi/yapi-mcp
Provides tools for AI agents to interact with YApi projects, categories, and interfaces programmatically.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@@kedoupi/yapi-mcpsearch for user login API in project myapp"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
YApi MCP Enhanced
An enhanced Model Context Protocol (MCP) server for YApi that enables seamless AI integration
Empower Claude, Cursor, and other AI tools with intelligent YApi API management capabilities
๐ Quick Start โข ๐ง Installation โข ๐ป Platforms โข ๐ Documentation โข ๐ค Contributing
๐ Features
Feature | Description | Status |
๐ Smart Search | Advanced API search with flexible filtering options | โ |
โ๏ธ Interface Management | Create, read, update API interfaces seamlessly | โ |
๐ฏ Project Organization | Manage projects and categories efficiently | โ |
๐ Enhanced UX | Superior error handling and user feedback | โ |
โก Performance | Intelligent caching and optimized requests | โ |
๐ก๏ธ Reliability | Comprehensive error handling and validation | โ |
๐ Multi-Platform | Claude Desktop, Cursor, Continue, and more | โ |
๐ Real-time Sync | Live synchronization with YApi changes | ๐ |
๐ Analytics | Usage statistics and performance metrics | ๐ |
Related MCP server: YApi MCP Server
๐ Quick Start
Prerequisites
Node.js 18+
YApi Server with API access
YApi Project Token
โก One-line Installation
# Install globally
npm install -g @kedoupi/yapi-mcp
# Test your connection
npx @kedoupi/yapi-mcp test-connection๐ง Installation
npm install -g @kedoupi/yapi-mcpyarn global add @kedoupi/yapi-mcpgit clone https://github.com/kedoupi/yapi-mcp.git
cd yapi-mcp
npm install
npm run buildโ๏ธ Configuration
Copy environment template:
cp .env.example .envConfigure your YApi settings:
# Required
YAPI_BASE_URL=https://your-yapi-domain.com
YAPI_PROJECT_TOKEN=your-project-token
# Optional
LOG_LEVEL=info
CACHE_TTL=300Test connection:
npx @kedoupi/yapi-mcp test-connection๐ป Platform Integration
๐ค Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"@kedoupi/yapi-mcp": {
"command": "npx",
"args": ["@kedoupi/yapi-mcp"],
"env": {
"YAPI_BASE_URL": "https://your-yapi-domain.com",
"YAPI_PROJECT_TOKEN": "your-project-token",
"LOG_LEVEL": "info"
}
}
}
}Config file locations:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.jsonLinux:
~/.config/Claude/claude_desktop_config.json
๐ฏ Cursor IDE
Open Cursor Settings (Cmd/Ctrl + ,)
Search for "MCP" or go to Extensions > MCP
Add new MCP server:
{
"name": "@kedoupi/yapi-mcp",
"command": "npx",
"args": ["@kedoupi/yapi-mcp"],
"env": {
"YAPI_BASE_URL": "https://your-yapi-domain.com",
"YAPI_PROJECT_TOKEN": "your-project-token"
}
}๐ Continue (VS Code)
Add to .continue/config.json:
{
"mcpServers": [
{
"name": "@kedoupi/yapi-mcp",
"command": "npx",
"args": ["@kedoupi/yapi-mcp"],
"env": {
"YAPI_BASE_URL": "https://your-yapi-domain.com",
"YAPI_PROJECT_TOKEN": "your-project-token"
}
}
]
}๐ง Codeium
Add MCP server configuration in Codeium settings:
{
"mcp_servers": {
"yapi": {
"command": "npx",
"args": ["@kedoupi/yapi-mcp"],
"env": {
"YAPI_BASE_URL": "https://your-yapi-domain.com",
"YAPI_PROJECT_TOKEN": "your-project-token"
}
}
}
}๐ Other Platforms
The server supports any MCP-compatible AI tool. Check our integration guide for more platforms.
๐ ๏ธ Available Tools
The server provides these tools for AI interaction:
Tool | Description | Parameters |
| List available YApi projects | - |
| Get project categories |
|
| Get API interface details |
|
| Search APIs with filters |
|
| Create new API interface |
|
| Update existing interface |
|
| Clear internal cache | - |
yapi_search_interfaces
Advanced search with multiple filters:
project_id (optional): Filter by project
catid (optional): Filter by category
q (optional): Search query string
page (optional): Page number for pagination
limit (optional): Results per page (max 100)
yapi_create_interface / yapi_update_interface
Full interface management with support for:
Request/response body specifications
Headers and query parameters
HTTP methods (GET, POST, PUT, DELETE, etc.)
Interface status and descriptions
Category assignments
๐๏ธ Architecture
graph TD
A[AI Tool] -->|MCP Protocol| B[YApi MCP Server]
B -->|HTTP API| C[YApi Server]
B -->|Cache| D[Memory Cache]
B -->|Logging| E[Logger]
B -->|Config| F[Environment]YApiClient: HTTP client for YApi API interactions
MCP Server: Protocol handler for AI tool integration
Caching: Intelligent caching for performance optimization
Configuration: Environment-based configuration management
Error Handling: Comprehensive error management
๐งช Development
Local Development
# Clone repository
git clone https://github.com/kedoupi/yapi-mcp.git
cd yapi-mcp
# Install dependencies
npm install
# Development mode (watch files)
npm run dev
# Build project
npm run build
# Start server
npm startTesting
# Run all tests
npm test
# Watch mode
npm run test:watch
# Coverage report
npm run test:coverage
# Unit tests only
npm run test:unit
# Integration tests
npm run test:integrationCode Quality
# Lint code
npm run lint
# Fix issues
npm run lint:fix
# Clean build
npm run clean๐ Performance
โก Fast Response: < 100ms for cached requests
๐พ Memory Efficient: < 50MB RAM usage
๐ Smart Caching: 5-minute TTL with cleanup
๐ Scalable: Handles 1000+ concurrent requests
๐ค Contributing
We welcome all contributions! Here's how you can help:
๐ Bug Reports
Found a bug? Open an issue
๐ก Feature Requests
Have an idea? Request a feature
๐ง Code Contributions
Fork the repository
Create feature branch (
git checkout -b feature/amazing-feature)Commit changes (
git commit -m 'Add amazing feature')Push to branch (
git push origin feature/amazing-feature)Open a Pull Request
See our Contributing Guide for detailed information.
๐ Other Ways to Help
โญ Star the repository
๐ข Share with others
๐ Improve documentation
๐งช Test new features
๐ Roadmap
๐ฏ Current Focus
Enhanced Mock data support
Batch operations for multiple APIs
Real-time synchronization with YApi
Multi-project parallel management
๐ฎ Future Plans
GraphQL API support
Web-based configuration UI
Custom plugin system
Advanced analytics dashboard
Docker container support
๐ Comparison
Feature | YApi MCP Enhanced | Original YApi MCP | Manual YApi |
AI Integration | โ Advanced | โ Basic | โ None |
Error Handling | โ Comprehensive | โ ๏ธ Limited | โ ๏ธ Manual |
Caching | โ Smart TTL | โ None | โ None |
Testing | โ 80%+ Coverage | โ None | โ Manual |
TypeScript | โ Full Support | โ ๏ธ Partial | โ None |
CLI Tools | โ Rich CLI | โ None | โ None |
๐ Related Projects
YApi - Visual API management platform
Model Context Protocol - AI tool communication standard
Claude Desktop - Anthropic's desktop application
Cursor - AI-powered code editor
๐ License
This project is licensed under the MIT License.
๐ Support
Need help? We're here for you:
๐ Documentation
๐ Report Issues
๐ฌ Discussions
๐ง Email Support
๐ Acknowledgments
Special thanks to:
YApi Team for the excellent API management platform
Anthropic for the Model Context Protocol
All Contributors who make this project better
Open Source Community for inspiration and support
If this project helps you, please give us a โญ๏ธ
Made with โค๏ธ by kedoupi and contributors
๐ Homepage โข ๐ Docs โข ๐ Issues โข ๐ฌ Discussions
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/kedoupi/yapi-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server