Skip to content

matoval/MCPWeaver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

94 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MCPWeaver

Build Status License: AGPL v3 Go Version

Transform OpenAPI specifications into Model Context Protocol (MCP) servers with a simple, fast CLI tool.

MCPWeaver is an open-source CLI tool that converts OpenAPI specifications into fully functional MCP servers. Built with Go, it provides a lightweight, user-controlled solution that runs entirely on your machine with no external dependencies.

πŸš€ Quick Start

# Install MCPWeaver
curl -sf https://gobinaries.com/matoval/mcpweaver | sh

# Generate MCP server from OpenAPI spec
mcpweaver generate api.yaml --output ./my-server

# Run your generated server
cd my-server && python server.py

πŸ“– View Full Getting Started Guide | ⬇️ Download Latest Release

✨ Key Features

  • πŸš€ Simple CLI: Single command to generate complete MCP servers
  • ⚑ Lightning Fast: Generate servers in seconds
  • πŸ–₯️ Pure Go: No external dependencies, works completely offline
  • 🎯 Interactive Selection: Choose which endpoints to include
  • 🐍 Python FastMCP: Generates ready-to-run Python servers
  • πŸ§ͺ Tests Included: Generated servers come with complete test suites
  • 🌐 Cross-Platform: Single binary for Windows, macOS, and Linux
  • πŸ’Ύ Lightweight: Minimal resource usage

πŸ› οΈ Installation

Quick Install

Using gobinaries (recommended):

curl -sf https://gobinaries.com/matoval/mcpweaver | sh

Direct download:

# Linux/macOS
wget https://github.com/matoval/MCPWeaver/releases/latest/download/mcpweaver-linux-amd64
chmod +x mcpweaver-linux-amd64
sudo mv mcpweaver-linux-amd64 /usr/local/bin/mcpweaver

# Windows (PowerShell)
Invoke-WebRequest -Uri "https://github.com/matoval/MCPWeaver/releases/latest/download/mcpweaver-windows-amd64.exe" -OutFile "mcpweaver.exe"

Package managers:

# Homebrew (macOS/Linux)
brew install matoval/tap/mcpweaver

# APT (Ubuntu/Debian)
echo "deb [trusted=yes] https://apt.fury.io/matoval/ /" | sudo tee /etc/apt/sources.list.d/matoval.list
sudo apt update && sudo apt install mcpweaver

πŸ“‹ Detailed Installation Instructions

🎯 Use Cases

  • API Integration: Convert REST APIs to MCP for LLM integration
  • Development Tools: Generate MCP servers for testing and development
  • Legacy System Integration: Modernize old APIs with MCP
  • Microservices: Create MCP interfaces for microservice architectures
  • AI/LLM Integration: Convert REST APIs to MCP servers for LLM workflows
  • Rapid Prototyping: Quickly generate MCP servers from existing API specs
  • API Modernization: Bridge legacy OpenAPI specs with modern MCP protocol
  • Development Tools: Create MCP servers for testing and development environments

πŸ“š Documentation

Document Description
πŸ“‹ Requirements Project requirements and scope
πŸ—οΈ Architecture Technical architecture and design
⌨️ CLI Design Command interface and user experience
πŸ“ Examples Input/output examples and use cases

πŸ—οΈ Architecture

MCPWeaver is built using modern, reliable technologies:

  • Core: Pure Go 1.21+ with zero external dependencies
  • Parser: OpenAPI 2.0/3.0+ support with comprehensive validation
  • Generator: Template-based Python FastMCP server generation
  • CLI: Cobra-based interface with interactive endpoint selection
  • Build: Single binary cross-platform distribution

🀝 Contributing

We welcome contributions! MCPWeaver is built by the community, for the community.

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests for your changes
  5. Open a Pull Request

πŸ‘©β€πŸ’» Full Developer Guide | πŸ› Report Issues

πŸ”’ Security

  • Local Processing: All data processed locally, no network connections required
  • No Dependencies: Pure Go binary with no external runtime dependencies
  • Offline Operation: Works completely offline, no data leaves your machine

πŸ“„ License

MCPWeaver is licensed under the GNU Affero General Public License v3.0 (AGPL-3.0).

This means:

  • βœ… Free to use for personal and commercial projects
  • βœ… Open source - you can view and modify the code
  • βœ… Share improvements - contributions benefit everyone
  • ⚠️ Copyleft - derivative works must also be open source

🌟 Related Projects

πŸ™‹ Support

Need help? We're here for you:

πŸŽ‰ Acknowledgments

  • The Model Context Protocol team for creating the MCP specification
  • The OpenAPI and MCP communities for their excellent specifications
  • The Go community for the powerful standard library
  • All our contributors who make MCPWeaver better every day

⭐ Star this repository if MCPWeaver helps you build better integrations! ⭐

πŸ“‹ View Planning β€’ πŸ“₯ Download β€’ 🀝 Contribute

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages