OpenAPI Directory MCP Server - A comprehensive Model Context Protocol server providing seamless access to the APIs.guru directory containing over 3,000 API specifications through seven dynamically generated tools with intelligent 24-hour caching and zero-configuration NPX deployment.
Location: /Users/rawveg/Projects/ClaudeFlowProjects/openapi-directory-mcp/docs/COMPLETE_ARCHITECTURE_DESIGN.md
Key Features:
- High-level system architecture with detailed component interactions
- Core principles: Simplicity, Performance, Reliability, Extensibility
- 7 specialized tools for comprehensive API discovery
- Full MCP protocol implementation with JSON-RPC over stdio
- TypeScript-first development with strict type safety
Location: /Users/rawveg/Projects/ClaudeFlowProjects/openapi-directory-mcp/docs/PROJECT_STRUCTURE.md
Key Components:
- Modular source structure with clear separation of concerns
- Comprehensive test suite with 80% coverage requirements
- Development tooling with VSCode integration
- GitHub Actions CI/CD pipeline configuration
- TypeScript compilation with strict settings
Location: /Users/rawveg/Projects/ClaudeFlowProjects/openapi-directory-mcp/docs/CACHE_STRATEGY.md
Caching Features:
- File-based cache storage in
~/.cache/openapi-directory-mcp/ - 24-hour TTL with configurable per-tool settings
- Intelligent cleanup with LRU eviction
- Cache-first strategy with API fallback
- Performance optimizations with parallel operations
Location: /Users/rawveg/Projects/ClaudeFlowProjects/openapi-directory-mcp/docs/TOOL_GENERATION.md
Tool Implementation:
- Seven specialized tools covering all APIs.guru endpoints
- Dynamic schema generation from OpenAPI specifications
- Comprehensive parameter validation and error handling
- Consistent tool pattern with cache integration
- Performance optimizations with lazy loading
Location: /Users/rawveg/Projects/ClaudeFlowProjects/openapi-directory-mcp/docs/PACKAGE_CONFIGURATION.md
NPX Features:
- Zero-configuration installation and execution
- Binary entry point with shebang for cross-platform compatibility
- Comprehensive NPM package configuration
- GitHub Actions for automated publishing
- Semantic versioning with automated releases
- getProviders: List all API providers (Google, Microsoft, etc.)
- getProvider: Get all APIs from a specific provider
- getServices: List services for a provider
- getAPI: Retrieve specific API version metadata
- getServiceAPI: Get API with service name
- listAPIs: Complete directory listing with metadata
- getMetrics: Directory statistics and growth metrics
- Type Safety: Full TypeScript interfaces for all tools
- Caching: 24-hour TTL with metrics having 1-hour TTL
- Validation: Runtime parameter validation against OpenAPI schemas
- Error Handling: Comprehensive error management with fallbacks
- Built with @modelcontextprotocol/sdk
- JSON-RPC over stdio communication
- Full MCP protocol compliance
- Tools generated from OpenAPI specification
- Runtime schema validation
- Type-safe parameter handling
- File-based cache in user directory
- Automatic cleanup and LRU eviction
- Cache-first strategy with API fallback
- Zero-config NPX installation
- Automatic cache directory creation
- Default settings for all operations
- Executable binary with shebang
- Proper package.json configuration
- GitHub Actions for automated publishing
- Open source with copyleft protection
- Encourages contribution and collaboration
- Protects against proprietary forks
/Users/rawveg/Projects/ClaudeFlowProjects/openapi-directory-mcp/
├── docs/
│ ├── ARCHITECTURE.md # Core architecture overview
│ ├── PROJECT_STRUCTURE.md # File organization guide
│ ├── CACHE_STRATEGY.md # Caching implementation
│ ├── TOOL_GENERATION.md # Tool creation approach
│ ├── PACKAGE_CONFIGURATION.md # NPX package setup
│ ├── COMPLETE_ARCHITECTURE_DESIGN.md # Comprehensive overview
│ └── openapi.yaml # APIs.guru OpenAPI spec
├── ARCHITECTURE_SUMMARY.md # This summary document
└── [Future implementation files]
- Cold Start: < 2 seconds
- Cache Hit: < 50ms response time
- Cache Miss: < 500ms response time
- Memory Usage: < 100MB steady state
- Cache Size: < 100MB on disk
- Node.js: >= 18.0.0
- TypeScript: ^5.0.0
- Operating System: Cross-platform (macOS, Linux, Windows)
- Dependencies: Minimal (only @modelcontextprotocol/sdk)
- Test Coverage: 80% minimum
- Type Safety: Strict TypeScript with no any types
- Code Quality: ESLint and Prettier enforcement
- Documentation: Comprehensive inline and external docs
~/.cache/openapi-directory-mcp/
├── meta.json # Cache metadata
├── index.json # Cache index with TTL
└── data/
├── providers.json # 24h TTL
├── provider-{name}.json # 24h TTL
├── services-{provider}.json # 24h TTL
├── api-{provider}-{api}.json # 24h TTL
├── api-{provider}-{service}-{api}.json # 24h TTL
├── list.json # 24h TTL
└── metrics.json # 1h TTL
- Read: TTL validation → Return if valid → Fetch if expired
- Write: Store with timestamp and TTL
- Cleanup: Automatic expired entry removal
- Eviction: LRU when cache exceeds 100MB
npx openapi-directory-mcp{
"mcpServers": {
"openapi-directory": {
"command": "npx",
"args": ["openapi-directory-mcp"]
}
}
}- Complete architecture design document
- Project structure and file organization
- Cache implementation strategy
- Tool generation approach
- Package configuration for NPX
- Core MCP server implementation
- Tool registry and individual tool implementations
- Cache layer with file-based storage
- API client with retry logic
- Type definitions and validation
- Unit tests for all components
- Integration tests for end-to-end functionality
- Performance benchmarking
- Security validation
- Documentation review
- GitHub Actions CI/CD setup
- NPM package publishing
- Documentation generation
- Community outreach
- API Coverage: 100% of APIs.guru endpoints
- Cache Hit Rate: > 80% for repeated requests
- Response Time: < 500ms for cache misses
- Memory Efficiency: < 100MB steady state
- Error Rate: < 1% for API calls
- Installation Time: < 30 seconds via NPX
- Configuration: Zero-config out of the box
- Tool Discovery: All 7 tools immediately available
- Documentation: Comprehensive and accessible
- Begin Implementation: Start with core MCP server and tool registry
- Implement Caching: Build file-based cache with TTL management
- API Client: Create robust HTTP client with retry logic
- Testing: Comprehensive test suite development
- Documentation: User guides and API documentation
The complete architecture is documented and ready for implementation. All design documents are stored in the /docs directory with clear organization and comprehensive coverage of all system aspects.
Memory Namespace: swarm-development-centralized-1752075917513/architect
All deliverables have been completed according to the specified requirements, providing a solid foundation for building a production-ready MCP server for APIs.guru integration.