CocoaPods Package README MCP Server
Enables retrieval of README files, package information, and metadata from CocoaPods registry with GitHub integration. Supports searching packages, fetching dependencies, and extracting usage examples for Swift and Objective-C libraries.
README
CocoaPods Package README MCP Server
A Model Context Protocol (MCP) server for retrieving README files and package information from CocoaPods with comprehensive documentation extraction.
Features
- Package README Retrieval: Get comprehensive README content and usage examples from CocoaPods packages
- Package Information: Fetch detailed package metadata, dependencies, and platform support
- Package Search: Search the CocoaPods registry with filtering capabilities
- Smart Caching: Efficient caching system to reduce API calls
- GitHub Integration: Automatically fetches README content from GitHub repositories
- Swift/iOS Focused: Optimized for iOS development with Swift and Objective-C code examples
Installation
npm install cocoapods-package-readme-mcp-server
Usage
With Claude Desktop
Add to your Claude Desktop configuration:
{
"mcpServers": {
"cocoapods-readme": {
"command": "node",
"args": ["path/to/cocoapods-package-readme-mcp-server/dist/index.js"],
"env": {
"GITHUB_TOKEN": "your-github-token-here"
}
}
}
}
Environment Variables
GITHUB_TOKEN(optional): GitHub personal access token for higher API rate limitsLOG_LEVEL(optional): Logging level (debug, info, warn, error) - default: infoCACHE_TTL(optional): Cache TTL in milliseconds - default: 3600000 (1 hour)CACHE_MAX_SIZE(optional): Maximum cache entries - default: 1000REQUEST_TIMEOUT(optional): HTTP request timeout in milliseconds - default: 30000
Available Tools
get_package_readme
Get package README and usage examples from CocoaPods registry.
Parameters:
package_name(string, required): The name of the CocoaPods packageversion(string, optional): The version of the package (default: "latest")include_examples(boolean, optional): Whether to include usage examples (default: true)
Example:
{
"package_name": "Alamofire",
"version": "latest",
"include_examples": true
}
get_package_info
Get package basic information and dependencies from CocoaPods registry.
Parameters:
package_name(string, required): The name of the CocoaPods packageinclude_dependencies(boolean, optional): Whether to include dependencies (default: true)include_dev_dependencies(boolean, optional): Whether to include test dependencies (default: false)
Example:
{
"package_name": "AFNetworking",
"include_dependencies": true,
"include_dev_dependencies": false
}
search_packages
Search for packages in CocoaPods registry.
Parameters:
query(string, required): The search querylimit(number, optional): Maximum number of results to return (default: 20, max: 250)quality(number, optional): Minimum quality score (0-1)popularity(number, optional): Minimum popularity score (0-1)
Example:
{
"query": "networking",
"limit": 10,
"quality": 0.5
}
Supported Package Examples
- Alamofire: Modern HTTP networking library for Swift
- AFNetworking: Objective-C HTTP networking library
- SwiftyJSON: JSON parsing library for Swift
- SnapKit: Auto Layout DSL for Swift
- Realm: Mobile database framework
- Charts: Beautiful charts library
- Kingfisher: Image downloading and caching library
API Integration
This server integrates with:
- CocoaPods API (
https://cocoapods.org/api/v1) for package information and search - GitHub API for README content retrieval
- Local caching for performance optimization
Development
Setup
git clone <repository-url>
cd cocoapods-package-readme-mcp-server
npm install
Build
npm run build
Development Server
npm run dev
Testing
npm test
Architecture
┌─────────────────┐ ┌─────────────────┐ ┌─────────────────┐
│ MCP Client │───▶│ CocoaPods │───▶│ CocoaPods API │
│ (Claude) │ │ README Server │ │ │
└─────────────────┘ └─────────────────┘ └─────────────────┘
│
▼
┌─────────────────┐
│ GitHub API │
│ (README fetch) │
└─────────────────┘
License
MIT
Contributing
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。