{"id":36898133,"url":"https://github.com/aaydin-tr/swagger-navigator-mcp","last_synced_at":"2026-01-12T15:43:47.784Z","repository":{"id":302943491,"uuid":"1004975148","full_name":"aaydin-tr/swagger-navigator-mcp","owner":"aaydin-tr","description":"Intelligent MCP Server for Swagger/OpenAPI Discovery","archived":false,"fork":false,"pushed_at":"2025-07-26T20:00:50.000Z","size":327,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-02T00:42:20.974Z","etag":null,"topics":["fuzzy-search","mcp-server","openapi","swagger"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aaydin-tr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-19T13:16:40.000Z","updated_at":"2025-07-26T19:59:49.000Z","dependencies_parsed_at":"2025-07-04T22:43:33.836Z","dependency_job_id":"3386a58a-d14c-47ba-a49d-43e24d6fa7a7","html_url":"https://github.com/aaydin-tr/swagger-navigator-mcp","commit_stats":null,"previous_names":["aaydin-tr/swagger-navigator-mcp"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/aaydin-tr/swagger-navigator-mcp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aaydin-tr%2Fswagger-navigator-mcp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aaydin-tr%2Fswagger-navigator-mcp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aaydin-tr%2Fswagger-navigator-mcp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aaydin-tr%2Fswagger-navigator-mcp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aaydin-tr","download_url":"https://codeload.github.com/aaydin-tr/swagger-navigator-mcp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aaydin-tr%2Fswagger-navigator-mcp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28341566,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T12:22:26.515Z","status":"ssl_error","status_checked_at":"2026-01-12T12:22:10.856Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["fuzzy-search","mcp-server","openapi","swagger"],"created_at":"2026-01-12T15:43:47.701Z","updated_at":"2026-01-12T15:43:47.772Z","avatar_url":"https://github.com/aaydin-tr.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🔍 Swagger Navigator MCP Server\n\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)\n[![Node.js](https://img.shields.io/badge/Node.js-18+-green.svg)](https://nodejs.org)\n[![TypeScript](https://img.shields.io/badge/TypeScript-Ready-blue.svg)](https://www.typescriptlang.org)\n\nAn MCP server implementation that provides intelligent discovery and search capabilities for Swagger/OpenAPI endpoints. This tool enables AI assistants to dynamically explore, understand, and interact with REST APIs by parsing OpenAPI specifications and providing fuzzy search across endpoints.\n\n---\n\n## 🚀 How It Works\n\nThe Swagger Navigator MCP Server acts as an intelligent API knowledge hub, seamlessly connecting developers with their API specifications. When you ask Cursor/Claude/LLMs to generate API clients, anticorruption layers, or type definitions, Cursor/Claude/LLMs consults the MCP server to get accurate, structured API information and then generates perfect code based on the actual API schema.\n\n```mermaid\nflowchart TD\n    A[👨‍💻 Developer] --\u003e|\"💬 Generate API client\u003cbr/\u003efor /users endpoint\"| B[🎯 Cursor/IDE/LLMs]\n    B --\u003e|\"🔍 Query: What is\u003cbr/\u003e/users endpoint?\"| C[🚀 Swagger Navigator MCP Server]\n    C --\u003e|\"📊 Returns endpoint\u003cbr/\u003eschema \u0026 structure\"| B\n    B --\u003e|\"✨ Here's your\u003cbr/\u003egenerated API client\"| A\n\n    style A fill:#74b9ff,stroke:#0984e3,stroke-width:2px,color:#fff\n    style B fill:#a29bfe,stroke:#6c5ce7,stroke-width:2px,color:#fff\n    style C fill:#ff6b6b,stroke:#333,stroke-width:4px,color:#fff\n\n    linkStyle 0 stroke:#fd79a8,stroke-width:3px\n    linkStyle 1 stroke:#00b894,stroke-width:3px\n    linkStyle 2 stroke:#fdcb6e,stroke-width:3px\n    linkStyle 3 stroke:#e17055,stroke-width:3px\n```\n\n---\n\n## ✨ Features\n\n- **🔍 Dynamic API Discovery**: Automatically parse and index Swagger/OpenAPI specifications from multiple sources\n- **🎯 Intelligent Search**: Use fuzzy matching to find relevant endpoints based on natural language queries\n- **🔗 Multi-source Support**: Handle both local files and remote HTTP endpoints with authentication\n- **⚡ Real-time Updates**: Monitor configuration changes and refresh API data automatically\n- **🔄 Hot-reload Configuration**: Detect config file changes without server restart\n\n---\n\n## 🛠️ Tools\n\n### 📋 `list_all_sources`\n\nRetrieves a comprehensive list of all available Swagger/OpenAPI sources in the system.\n\n**Purpose:**\n\n- Provides overview of all loaded API specifications\n- Shows available APIs for search and exploration\n- Returns source names for use with other tools\n\n**Returns:**\n\n- Array of sources with name, description, and OpenAPI info (title, version)\n\n### 📄 `list_endpoints_for_source`\n\nRetrieves all endpoints from a specific API source with pagination support.\n\n**Inputs:**\n\n- `name` (string): The source name to list endpoints for\n- `limit` (number, optional): Maximum endpoints to return (1-100, default: 10)\n- `offset` (number, optional): Number of endpoints to skip (default: 0)\n\n**Returns:**\n\n- Array of endpoints with path, method, description, and metadata\n- Pagination information with total count and navigation flags\n\n### 🔎 `search_endpoint`\n\nIntelligently searches endpoints using fuzzy matching across multiple attributes.\n\n**Inputs:**\n\n- `query` (string): Search query using natural language (e.g., \"create user\", \"authentication\", \"GET users\")\n\n**Returns:**\n\n- Ranked array of matching endpoints with relevance scores\n- Weighted search across descriptions, paths, methods, and tags\n\n---\n\n## ⚙️ Configuration\n\n### 🤖 Usage with Cursor\n\nAdd this to your `~/.cursor/mcp.json`:\n\n#### Using npx\n\n```json\n{\n  \"mcpServers\": {\n    \"swagger-navigator-mcp\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"swagger-navigator-mcp\"],\n      \"env\": {\n        \"CONFIG_PATH\": \"path/to/swagger-navigator-mcp.config.yaml\"\n      }\n    }\n  }\n}\n```\n\n### 📝 Configuration File\n\nCreate a `swagger-navigator-mcp.config.yaml` file:\n\n```yaml\n# Swagger Navigator MCP Server Configuration\n\nsources:\n  # Local file example\n  - name: \"petstore-local\"\n    source: \"./specs/petstore.json\"\n    description: \"Local Petstore API specification\"\n\n  # Remote HTTP source with authentication\n  - name: \"github-api\"\n    source: \"https://api.github.com\"\n    description: \"GitHub REST API v3\"\n    headers:\n      Authorization: \"token ${GITHUB_TOKEN}\"\n      Accept: \"application/vnd.github.v3+json\"\n\n  # API with custom headers\n  - name: \"internal-api\"\n    source: \"https://internal.company.com/api/swagger.json\"\n    description: \"Internal company API\"\n    headers:\n      X-API-Key: \"${API_KEY}\"\n\n# Optional: Search configuration\nsearch:\n  fuzzyThreshold: 0.6 # 0-1, lower = more fuzzy matching\n\n# Optional: Refresh interval in seconds\nrefreshInterval: 300 # Refresh every 5 minutes\n```\n\n### 🔐 Environment Variable Substitution\n\nThe configuration file supports environment variable substitution using `${VARIABLE_NAME}` syntax. This allows you to securely store sensitive information like API keys and tokens outside of your configuration file.\n\n**Examples:**\n\n- `${GITHUB_TOKEN}` - Substituted with the value of the `GITHUB_TOKEN` environment variable\n- `${API_KEY}` - Substituted with the value of the `API_KEY` environment variable\n- `${DATABASE_URL}` - Any environment variable can be used\n\n\u003e **Note:** If an environment variable is not set, the substitution will result in an empty string.\n\n### 🌍 Environment Variables\n\nSet environment variables for configuration and authentication:\n\n```bash\nexport CONFIG_PATH=\"./swagger-navigator-mcp.config.yaml\"\nexport GITHUB_TOKEN=\"your-github-token\"\nexport API_KEY=\"your-api-key\"\n```\n\n---\n\n## 🚀 Usage\n\n### 📦 Install Dependencies\n\n```bash\nnpm install\n```\n\n### 🔨 Build the Project\n\n```bash\nnpm run build\n```\n\n### ▶️ Start the Server\n\n```bash\nCONFIG_PATH=./swagger-navigator-mcp.config.yaml npm start\n```\n\n### 🧪 Development Mode\n\n```bash\nnpm run dev\n```\n\n---\n\n## 📄 License\n\nThis project is licensed under the ISC License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faaydin-tr%2Fswagger-navigator-mcp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faaydin-tr%2Fswagger-navigator-mcp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faaydin-tr%2Fswagger-navigator-mcp/lists"}