{"id":29885898,"url":"https://github.com/jayli52/api2mcptools","last_synced_at":"2025-07-31T16:06:16.338Z","repository":{"id":285528709,"uuid":"958457728","full_name":"JayLi52/api2mcptools","owner":"JayLi52","description":"A Node.js package that converts APIs to MCP (Model Context Protocol) tools.","archived":false,"fork":false,"pushed_at":"2025-05-26T10:07:39.000Z","size":150,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-01T20:52:06.175Z","etag":null,"topics":["api2mcptools","mcpapi","mcptools"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JayLi52.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-04-01T08:26:11.000Z","updated_at":"2025-05-26T10:07:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"4c01baa6-ff05-4d57-a17e-0ab2d63dba5a","html_url":"https://github.com/JayLi52/api2mcptools","commit_stats":null,"previous_names":["jayli52/api2mcptools"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/JayLi52/api2mcptools","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JayLi52%2Fapi2mcptools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JayLi52%2Fapi2mcptools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JayLi52%2Fapi2mcptools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JayLi52%2Fapi2mcptools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JayLi52","download_url":"https://codeload.github.com/JayLi52/api2mcptools/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JayLi52%2Fapi2mcptools/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268067936,"owners_count":24190457,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-31T02:00:08.723Z","response_time":66,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["api2mcptools","mcpapi","mcptools"],"created_at":"2025-07-31T16:03:03.235Z","updated_at":"2025-07-31T16:06:16.328Z","avatar_url":"https://github.com/JayLi52.png","language":"JavaScript","funding_links":[],"categories":["Other Tools and Integrations"],"sub_categories":["How to Submit"],"readme":"# @terryliyongjie/api2mcptools\n\n[中文文档](./README_CN.md)\n\n[![smithery badge](https://smithery.ai/badge/@JayLi52/api2mcptools)](https://smithery.ai/server/@JayLi52/api2mcptools)\n[![Model Context Protocol](https://img.shields.io/badge/Model%20Context%20Protocol-purple)](https://modelcontextprotocol.org)\n\nA Node.js package that converts APIs to MCP (Model Context Protocol) tools.\n\n- CherryStudio Example [CherryStudio](https://cherry-ai.com/)\n![CherryStudio Example Configuration](./example.jpg)\n\n## Installation\n\n### Option 1: Quick Start with npx (Recommended)\n```bash\nset CONFIG_JSON_PATH=example.json\nnpx @terryliyongjie/api2mcptools\n```\n\n### Option 2: Traditional Installation\n```bash\n# Install locally in your project\nnpm install @terryliyongjie/mcp-tools\n\n# Or install globally to use as a CLI tool\nnpm install -g @terryliyongjie/mcp-tools\n```\n\n## Configuration\n\n### Environment Variables\n\n```bash\n# Required: Path to your configuration JSON file\nCONFIG_JSON_PATH=example.json\n```\n\nExample configuration file (`example.json`):\n```js\n// Single tool configuration\n{\n    \"name\": \"tool_name\",\n    \"description\": \"Tool description\",\n    \"inputSchema\": {\n        \"type\": \"object\",\n        \"properties\": {\n            \"param1\": {\n                \"type\": \"string\",\n                \"description\": \"Parameter description\"\n            }\n        },\n        \"required\": [\"param1\"]\n    },\n    \"axiosConfig\": {\n        \"url\": \"https://api.example.com/endpoint\",\n        \"method\": \"get\",\n        \"params\": {\n            \"key\": \"your_api_key\"\n        }\n    }\n}\n\n// Or multiple tools configuration\n[\n    {\n        \"name\": \"baidu_place_search\",\n        \"description\": \"使用百度地图API进行地点检索服务\",\n        \"inputSchema\": {\n            \"type\": \"object\",\n            \"properties\": {\n                \"query\": {\n                    \"type\": \"string\",\n                    \"description\": \"检索关键字\"\n                },\n                \"region\": {\n                    \"type\": \"string\",\n                    \"description\": \"检索行政区划区域\"\n                }\n            },\n            \"required\": [\"query\", \"region\"]\n        },\n        \"axiosConfig\": {\n            \"url\": \"https://api.map.baidu.com/place/v2/search\",\n            \"method\": \"get\",\n            \"params\": {\n                \"ak\": \"your_baidu_map_key\"\n            }\n        }\n    },\n    // More tools...\n]\n```\n\n## Features\n\n- Convert JSON APIs to MCP tools\n- Easy integration with MCP ecosystem\n- Support for various API types\n- Command-line interface (CLI) support\n\n## Usage\n\n### As a CLI Tool\nAfter installing globally, you can use the command directly in your terminal:\n\n```bash\nmcp-tools [options]\n```\n\n### As a Module\n```typescript\n// Example code coming soon\n```\n\n## Development\n\n```bash\n# Install dependencies\nnpm install\n\n# Build the project\nnpm run build\n\n# Run in development mode\nnpm run dev\n\n# Watch mode during development\nnpm run watch\n\n# Run MCP inspector\nnpm run inspector\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjayli52%2Fapi2mcptools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjayli52%2Fapi2mcptools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjayli52%2Fapi2mcptools/lists"}