mcp-maker 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,46 @@
1
+ name: Publish to PyPI
2
+
3
+ on:
4
+ release:
5
+ types: [published]
6
+
7
+ permissions:
8
+ contents: read
9
+ id-token: write # Required for PyPI Trusted Publisher
10
+
11
+ jobs:
12
+ test:
13
+ name: Run Tests
14
+ runs-on: ubuntu-latest
15
+ steps:
16
+ - uses: actions/checkout@v4
17
+ - uses: actions/setup-python@v5
18
+ with:
19
+ python-version: "3.12"
20
+ - name: Install dependencies
21
+ run: pip install -e ".[dev]"
22
+ - name: Run tests
23
+ run: pytest tests/ -v
24
+
25
+ publish:
26
+ name: Build & Publish to PyPI
27
+ needs: test
28
+ runs-on: ubuntu-latest
29
+ environment:
30
+ name: pypi
31
+ url: https://pypi.org/p/mcp-maker
32
+ steps:
33
+ - uses: actions/checkout@v4
34
+ - uses: actions/setup-python@v5
35
+ with:
36
+ python-version: "3.12"
37
+
38
+ - name: Install build tools
39
+ run: pip install build
40
+
41
+ - name: Build package
42
+ run: python -m build
43
+
44
+ - name: Publish to PyPI
45
+ uses: pypa/gh-action-pypi-publish@release/v1
46
+ # No API token needed — uses Trusted Publisher (OIDC)
@@ -0,0 +1,26 @@
1
+ name: Tests
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+ branches: [main]
8
+
9
+ jobs:
10
+ test:
11
+ runs-on: ubuntu-latest
12
+ strategy:
13
+ matrix:
14
+ python-version: ["3.10", "3.11", "3.12"]
15
+
16
+ steps:
17
+ - uses: actions/checkout@v4
18
+ - uses: actions/setup-python@v5
19
+ with:
20
+ python-version: ${{ matrix.python-version }}
21
+
22
+ - name: Install dependencies
23
+ run: pip install -e ".[dev]"
24
+
25
+ - name: Run tests
26
+ run: pytest tests/ -v
@@ -0,0 +1,22 @@
1
+ __pycache__/
2
+ *.py[cod]
3
+ *$py.class
4
+ *.so
5
+ *.egg-info/
6
+ dist/
7
+ build/
8
+ .eggs/
9
+ *.egg
10
+ .venv/
11
+ venv/
12
+ .env
13
+ *.db
14
+ *.sqlite
15
+ *.sqlite3
16
+ mcp_server.py
17
+ .pytest_cache/
18
+ .mypy_cache/
19
+ .ruff_cache/
20
+ htmlcov/
21
+ .coverage
22
+ *.log
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Ali Hasan
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,183 @@
1
+ Metadata-Version: 2.4
2
+ Name: mcp-maker
3
+ Version: 0.1.0
4
+ Summary: Auto-generate MCP servers from any data source. Zero code required.
5
+ Project-URL: Homepage, https://github.com/MrAliHasan/mcp-maker
6
+ Project-URL: Documentation, https://github.com/MrAliHasan/mcp-maker#readme
7
+ Project-URL: Repository, https://github.com/MrAliHasan/mcp-maker
8
+ Project-URL: Issues, https://github.com/MrAliHasan/mcp-maker/issues
9
+ Author-email: Ali Hasan <ali@example.com>
10
+ License-Expression: MIT
11
+ License-File: LICENSE
12
+ Keywords: ai,claude,generator,llm,mcp,model-context-protocol,server
13
+ Classifier: Development Status :: 3 - Alpha
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: License :: OSI Approved :: MIT License
16
+ Classifier: Programming Language :: Python :: 3
17
+ Classifier: Programming Language :: Python :: 3.10
18
+ Classifier: Programming Language :: Python :: 3.11
19
+ Classifier: Programming Language :: Python :: 3.12
20
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
21
+ Classifier: Topic :: Software Development :: Code Generators
22
+ Requires-Python: >=3.10
23
+ Requires-Dist: jinja2>=3.1.0
24
+ Requires-Dist: mcp>=1.0.0
25
+ Requires-Dist: rich>=13.0.0
26
+ Requires-Dist: typer>=0.9.0
27
+ Provides-Extra: airtable
28
+ Requires-Dist: pyairtable>=2.0.0; extra == 'airtable'
29
+ Provides-Extra: all
30
+ Requires-Dist: psycopg2-binary>=2.9.0; extra == 'all'
31
+ Requires-Dist: pyairtable>=2.0.0; extra == 'all'
32
+ Requires-Dist: pymysql>=1.1.0; extra == 'all'
33
+ Provides-Extra: dev
34
+ Requires-Dist: pytest-asyncio>=0.23.0; extra == 'dev'
35
+ Requires-Dist: pytest>=8.0.0; extra == 'dev'
36
+ Provides-Extra: mysql
37
+ Requires-Dist: pymysql>=1.1.0; extra == 'mysql'
38
+ Provides-Extra: postgres
39
+ Requires-Dist: psycopg2-binary>=2.9.0; extra == 'postgres'
40
+ Description-Content-Type: text/markdown
41
+
42
+ # MCP-Maker
43
+
44
+ ### ⚒️ Auto-generate MCP servers from any data source. Zero code required.
45
+
46
+ > Point MCP-Maker at a database, API, or file directory and get a fully functional [MCP](https://modelcontextprotocol.io/) server in seconds — ready for Claude, ChatGPT, Cursor, and any MCP-compatible AI.
47
+
48
+ ---
49
+
50
+ ## 🚀 Quick Start
51
+
52
+ ```bash
53
+ pip install mcp-maker
54
+
55
+ # From a SQLite database
56
+ mcp-maker init sqlite:///my_database.db
57
+ mcp-maker serve
58
+
59
+ # From CSV/JSON files
60
+ mcp-maker init ./data/
61
+ mcp-maker serve
62
+
63
+ # That's it! Your AI can now query your data.
64
+ ```
65
+
66
+ ## Why MCP-Maker?
67
+
68
+ | | FastMCP | MCP-Maker |
69
+ |---|---------|----------|
70
+ | **Approach** | You write Python tools | It generates everything |
71
+ | **Setup time** | Minutes–hours | Seconds |
72
+ | **Code required** | Yes | No |
73
+ | **Best for** | Custom logic | Data access |
74
+
75
+ MCP-Maker uses FastMCP under the hood — it's not competing, it's building on top.
76
+
77
+ ---
78
+
79
+ ## 📋 Commands
80
+
81
+ | Command | Description |
82
+ |---------|-------------|
83
+ | `mcp-maker init <source>` | Generate an MCP server from a data source |
84
+ | `mcp-maker inspect <source>` | Preview what would be generated (dry run) |
85
+ | `mcp-maker serve` | Run the generated MCP server |
86
+ | `mcp-maker list-connectors` | Show available connectors |
87
+
88
+ ## 🔌 Connectors
89
+
90
+ ### Built-in
91
+
92
+ | Connector | URI Format | Status |
93
+ |-----------|-----------|--------|
94
+ | **SQLite** | `sqlite:///path/to/db.sqlite` | ✅ Ready |
95
+ | **Files** (CSV, JSON, txt) | `./path/to/directory/` | ✅ Ready |
96
+ | **PostgreSQL** | `postgres://user:pass@host/db` | 🔜 Coming |
97
+ | **MySQL** | `mysql://user:pass@host/db` | 🔜 Coming |
98
+ | **Airtable** | `airtable://appXXXX` | 🔜 Coming |
99
+
100
+ ### Want to add a connector?
101
+
102
+ Every connector is a single Python file — PRs welcome! See [Contributing](#contributing).
103
+
104
+ ---
105
+
106
+ ## 🛠️ What Gets Generated
107
+
108
+ For each table in your data source, MCP-Maker generates:
109
+
110
+ | Tool | Description |
111
+ |------|-------------|
112
+ | `list_{table}(limit, offset)` | Paginated listing |
113
+ | `get_{table}_by_{pk}(id)` | Get by primary key |
114
+ | `search_{table}(query)` | Full-text search |
115
+ | `count_{table}()` | Row count |
116
+ | `schema_{table}()` | Column names and types |
117
+
118
+ For text files, it generates `read_{name}()` resources.
119
+
120
+ ---
121
+
122
+ ## 💡 Example: SQLite Database
123
+
124
+ ```bash
125
+ $ mcp-maker init sqlite:///chinook.db
126
+
127
+ ⚒️ MCP-Maker v0.1.0
128
+
129
+ ✅ Connected to sqlite source
130
+
131
+ ┌──────────────────────────────────┐
132
+ │ 📊 Discovered Tables (11) │
133
+ ├──────────┬──────────┬────────────┤
134
+ │ Table │ Columns │ Rows │
135
+ ├──────────┼──────────┼────────────┤
136
+ │ albums │ id, ... │ 347 │
137
+ │ artists │ id, ... │ 275 │
138
+ │ tracks │ id, ... │ 3503 │
139
+ └──────────┴──────────┴────────────┘
140
+
141
+ 🎉 Generated: mcp_server.py
142
+
143
+ $ mcp-maker serve
144
+ 🚀 MCP-Maker Server running...
145
+ ```
146
+
147
+ Now in Claude Desktop, add the server and ask: *"What are the top 5 artists with the most albums?"*
148
+
149
+ ---
150
+
151
+ ## 🤝 Contributing
152
+
153
+ MCP-Maker is designed for community contributions — each new **connector** is a self-contained PR:
154
+
155
+ 1. Create `src/mcp_maker/connectors/your_connector.py`
156
+ 2. Subclass `BaseConnector`
157
+ 3. Implement `validate()` and `inspect()`
158
+ 4. Register with `register_connector("scheme", YourConnector)`
159
+ 5. Add tests
160
+
161
+ See `connectors/sqlite.py` as a reference implementation.
162
+
163
+ ---
164
+
165
+ ## 📦 Installation
166
+
167
+ ```bash
168
+ # Core (SQLite + Files)
169
+ pip install mcp-maker
170
+
171
+ # With PostgreSQL support
172
+ pip install mcp-maker[postgres]
173
+
174
+ # With all connectors
175
+ pip install mcp-maker[all]
176
+
177
+ # Development
178
+ pip install mcp-maker[dev]
179
+ ```
180
+
181
+ ## License
182
+
183
+ MIT
@@ -0,0 +1,142 @@
1
+ # MCP-Maker
2
+
3
+ ### ⚒️ Auto-generate MCP servers from any data source. Zero code required.
4
+
5
+ > Point MCP-Maker at a database, API, or file directory and get a fully functional [MCP](https://modelcontextprotocol.io/) server in seconds — ready for Claude, ChatGPT, Cursor, and any MCP-compatible AI.
6
+
7
+ ---
8
+
9
+ ## 🚀 Quick Start
10
+
11
+ ```bash
12
+ pip install mcp-maker
13
+
14
+ # From a SQLite database
15
+ mcp-maker init sqlite:///my_database.db
16
+ mcp-maker serve
17
+
18
+ # From CSV/JSON files
19
+ mcp-maker init ./data/
20
+ mcp-maker serve
21
+
22
+ # That's it! Your AI can now query your data.
23
+ ```
24
+
25
+ ## Why MCP-Maker?
26
+
27
+ | | FastMCP | MCP-Maker |
28
+ |---|---------|----------|
29
+ | **Approach** | You write Python tools | It generates everything |
30
+ | **Setup time** | Minutes–hours | Seconds |
31
+ | **Code required** | Yes | No |
32
+ | **Best for** | Custom logic | Data access |
33
+
34
+ MCP-Maker uses FastMCP under the hood — it's not competing, it's building on top.
35
+
36
+ ---
37
+
38
+ ## 📋 Commands
39
+
40
+ | Command | Description |
41
+ |---------|-------------|
42
+ | `mcp-maker init <source>` | Generate an MCP server from a data source |
43
+ | `mcp-maker inspect <source>` | Preview what would be generated (dry run) |
44
+ | `mcp-maker serve` | Run the generated MCP server |
45
+ | `mcp-maker list-connectors` | Show available connectors |
46
+
47
+ ## 🔌 Connectors
48
+
49
+ ### Built-in
50
+
51
+ | Connector | URI Format | Status |
52
+ |-----------|-----------|--------|
53
+ | **SQLite** | `sqlite:///path/to/db.sqlite` | ✅ Ready |
54
+ | **Files** (CSV, JSON, txt) | `./path/to/directory/` | ✅ Ready |
55
+ | **PostgreSQL** | `postgres://user:pass@host/db` | 🔜 Coming |
56
+ | **MySQL** | `mysql://user:pass@host/db` | 🔜 Coming |
57
+ | **Airtable** | `airtable://appXXXX` | 🔜 Coming |
58
+
59
+ ### Want to add a connector?
60
+
61
+ Every connector is a single Python file — PRs welcome! See [Contributing](#contributing).
62
+
63
+ ---
64
+
65
+ ## 🛠️ What Gets Generated
66
+
67
+ For each table in your data source, MCP-Maker generates:
68
+
69
+ | Tool | Description |
70
+ |------|-------------|
71
+ | `list_{table}(limit, offset)` | Paginated listing |
72
+ | `get_{table}_by_{pk}(id)` | Get by primary key |
73
+ | `search_{table}(query)` | Full-text search |
74
+ | `count_{table}()` | Row count |
75
+ | `schema_{table}()` | Column names and types |
76
+
77
+ For text files, it generates `read_{name}()` resources.
78
+
79
+ ---
80
+
81
+ ## 💡 Example: SQLite Database
82
+
83
+ ```bash
84
+ $ mcp-maker init sqlite:///chinook.db
85
+
86
+ ⚒️ MCP-Maker v0.1.0
87
+
88
+ ✅ Connected to sqlite source
89
+
90
+ ┌──────────────────────────────────┐
91
+ │ 📊 Discovered Tables (11) │
92
+ ├──────────┬──────────┬────────────┤
93
+ │ Table │ Columns │ Rows │
94
+ ├──────────┼──────────┼────────────┤
95
+ │ albums │ id, ... │ 347 │
96
+ │ artists │ id, ... │ 275 │
97
+ │ tracks │ id, ... │ 3503 │
98
+ └──────────┴──────────┴────────────┘
99
+
100
+ 🎉 Generated: mcp_server.py
101
+
102
+ $ mcp-maker serve
103
+ 🚀 MCP-Maker Server running...
104
+ ```
105
+
106
+ Now in Claude Desktop, add the server and ask: *"What are the top 5 artists with the most albums?"*
107
+
108
+ ---
109
+
110
+ ## 🤝 Contributing
111
+
112
+ MCP-Maker is designed for community contributions — each new **connector** is a self-contained PR:
113
+
114
+ 1. Create `src/mcp_maker/connectors/your_connector.py`
115
+ 2. Subclass `BaseConnector`
116
+ 3. Implement `validate()` and `inspect()`
117
+ 4. Register with `register_connector("scheme", YourConnector)`
118
+ 5. Add tests
119
+
120
+ See `connectors/sqlite.py` as a reference implementation.
121
+
122
+ ---
123
+
124
+ ## 📦 Installation
125
+
126
+ ```bash
127
+ # Core (SQLite + Files)
128
+ pip install mcp-maker
129
+
130
+ # With PostgreSQL support
131
+ pip install mcp-maker[postgres]
132
+
133
+ # With all connectors
134
+ pip install mcp-maker[all]
135
+
136
+ # Development
137
+ pip install mcp-maker[dev]
138
+ ```
139
+
140
+ ## License
141
+
142
+ MIT
@@ -0,0 +1,55 @@
1
+ [build-system]
2
+ requires = ["hatchling"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "mcp-maker"
7
+ version = "0.1.0"
8
+ description = "Auto-generate MCP servers from any data source. Zero code required."
9
+ readme = "README.md"
10
+ license = "MIT"
11
+ requires-python = ">=3.10"
12
+ authors = [
13
+ { name = "Ali Hasan", email = "ali@example.com" },
14
+ ]
15
+ keywords = ["mcp", "model-context-protocol", "ai", "llm", "claude", "server", "generator"]
16
+ classifiers = [
17
+ "Development Status :: 3 - Alpha",
18
+ "Intended Audience :: Developers",
19
+ "License :: OSI Approved :: MIT License",
20
+ "Programming Language :: Python :: 3",
21
+ "Programming Language :: Python :: 3.10",
22
+ "Programming Language :: Python :: 3.11",
23
+ "Programming Language :: Python :: 3.12",
24
+ "Topic :: Software Development :: Code Generators",
25
+ "Topic :: Scientific/Engineering :: Artificial Intelligence",
26
+ ]
27
+ dependencies = [
28
+ "typer>=0.9.0",
29
+ "rich>=13.0.0",
30
+ "jinja2>=3.1.0",
31
+ "mcp>=1.0.0",
32
+ ]
33
+
34
+ [project.optional-dependencies]
35
+ postgres = ["psycopg2-binary>=2.9.0"]
36
+ mysql = ["pymysql>=1.1.0"]
37
+ airtable = ["pyairtable>=2.0.0"]
38
+ all = ["mcp-maker[postgres,mysql,airtable]"]
39
+ dev = ["pytest>=8.0.0", "pytest-asyncio>=0.23.0"]
40
+
41
+ [project.scripts]
42
+ mcp-maker = "mcp_maker.cli:app"
43
+
44
+ [project.urls]
45
+ Homepage = "https://github.com/MrAliHasan/mcp-maker"
46
+ Documentation = "https://github.com/MrAliHasan/mcp-maker#readme"
47
+ Repository = "https://github.com/MrAliHasan/mcp-maker"
48
+ Issues = "https://github.com/MrAliHasan/mcp-maker/issues"
49
+
50
+ [tool.hatch.build.targets.wheel]
51
+ packages = ["src/mcp_maker"]
52
+
53
+ [tool.pytest.ini_options]
54
+ testpaths = ["tests"]
55
+ asyncio_mode = "auto"
@@ -0,0 +1,8 @@
1
+ """
2
+ MCP-Maker — Auto-generate MCP servers from any data source.
3
+
4
+ Point MCP-Maker at a database, API, or file directory and get a
5
+ fully functional MCP server — zero Python code required.
6
+ """
7
+
8
+ __version__ = "0.1.0"