ds-mcp-flowise 1.0.0
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.
- package/README.md +174 -0
- package/data/flowise.db +0 -0
- package/data/nodes.json +23349 -0
- package/data/summary.json +39 -0
- package/data/templates.json +53107 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +679 -0
- package/dist/index.js.map +1 -0
- package/package.json +48 -0
- package/scripts/extract-nodes.ts +368 -0
- package/scripts/prepare-database.ts +230 -0
- package/src/index.ts +768 -0
- package/tsconfig.json +19 -0
package/README.md
ADDED
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
# DS-MCP-FLOWISE
|
|
2
|
+
|
|
3
|
+
MCP (Model Context Protocol) server for building and managing [Flowise](https://flowiseai.com/) chatflows and agentflows. Provides AI assistants (Claude, GPT, etc.) with comprehensive knowledge of Flowise nodes and tools for workflow creation.
|
|
4
|
+
|
|
5
|
+
## Features
|
|
6
|
+
|
|
7
|
+
- **Complete Node Database**: All 390+ Flowise nodes with full schemas, inputs, and descriptions
|
|
8
|
+
- **Template Library**: 50+ marketplace templates as working examples
|
|
9
|
+
- **Intelligent Search**: Full-text search across nodes and templates
|
|
10
|
+
- **Flow Validation**: Verify flows before deploying
|
|
11
|
+
- **Compatibility Finder**: Discover which nodes can connect together
|
|
12
|
+
- **Flow Skeletons**: Generate starting points for common use cases
|
|
13
|
+
|
|
14
|
+
## Installation
|
|
15
|
+
|
|
16
|
+
### Quick Start with Claude Code
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
# Clone the repository
|
|
20
|
+
git clone https://github.com/dtsoden/DS-MCP-FLOWISE.git
|
|
21
|
+
cd DS-MCP-FLOWISE
|
|
22
|
+
|
|
23
|
+
# Install dependencies
|
|
24
|
+
npm install
|
|
25
|
+
|
|
26
|
+
# Build the database (extracts from Flowise source)
|
|
27
|
+
npm run extract
|
|
28
|
+
npm run prepare-db
|
|
29
|
+
|
|
30
|
+
# Build the server
|
|
31
|
+
npm run build
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
### Add to Claude Code
|
|
35
|
+
|
|
36
|
+
Add to your Claude Code MCP configuration:
|
|
37
|
+
|
|
38
|
+
```json
|
|
39
|
+
{
|
|
40
|
+
"mcpServers": {
|
|
41
|
+
"flowise": {
|
|
42
|
+
"command": "node",
|
|
43
|
+
"args": ["/path/to/DS-MCP-FLOWISE/dist/index.js"]
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
### Add to Claude Desktop
|
|
50
|
+
|
|
51
|
+
Add to `claude_desktop_config.json`:
|
|
52
|
+
|
|
53
|
+
```json
|
|
54
|
+
{
|
|
55
|
+
"mcpServers": {
|
|
56
|
+
"flowise": {
|
|
57
|
+
"command": "node",
|
|
58
|
+
"args": ["/path/to/DS-MCP-FLOWISE/dist/index.js"]
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
## Tools
|
|
65
|
+
|
|
66
|
+
### Node Discovery
|
|
67
|
+
|
|
68
|
+
| Tool | Description |
|
|
69
|
+
|------|-------------|
|
|
70
|
+
| `list_categories` | List all node categories with counts |
|
|
71
|
+
| `list_nodes` | List nodes, optionally filtered by category |
|
|
72
|
+
| `get_node_schema` | Get detailed schema for a node including all inputs |
|
|
73
|
+
| `search_nodes` | Full-text search across nodes |
|
|
74
|
+
| `find_compatible_nodes` | Find nodes that can connect to a given node |
|
|
75
|
+
|
|
76
|
+
### Template Library
|
|
77
|
+
|
|
78
|
+
| Tool | Description |
|
|
79
|
+
|------|-------------|
|
|
80
|
+
| `list_templates` | List marketplace templates by type |
|
|
81
|
+
| `get_template` | Get complete template with nodes and edges |
|
|
82
|
+
|
|
83
|
+
### Flow Building
|
|
84
|
+
|
|
85
|
+
| Tool | Description |
|
|
86
|
+
|------|-------------|
|
|
87
|
+
| `validate_flow` | Validate a flow's nodes and connections |
|
|
88
|
+
| `generate_flow_skeleton` | Generate a starting flow for common use cases |
|
|
89
|
+
|
|
90
|
+
## Example Usage
|
|
91
|
+
|
|
92
|
+
### Discover Available Nodes
|
|
93
|
+
|
|
94
|
+
```
|
|
95
|
+
Use list_categories to see all node types
|
|
96
|
+
|
|
97
|
+
Use list_nodes with category="Chat Models" to see chat models
|
|
98
|
+
|
|
99
|
+
Use search_nodes with query="vector database" to find vector stores
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
### Build a RAG Chatbot
|
|
103
|
+
|
|
104
|
+
```
|
|
105
|
+
1. Use get_template with name="Conversational Retrieval QA Chain" for an example
|
|
106
|
+
2. Use get_node_schema for each node you want to use
|
|
107
|
+
3. Use find_compatible_nodes to see what connects where
|
|
108
|
+
4. Use validate_flow to check your flow before deploying
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
### Generate a Flow Skeleton
|
|
112
|
+
|
|
113
|
+
```
|
|
114
|
+
Use generate_flow_skeleton with use_case="rag_chatbot"
|
|
115
|
+
|
|
116
|
+
Supported use cases:
|
|
117
|
+
- simple_chatbot
|
|
118
|
+
- rag_chatbot
|
|
119
|
+
- conversational_agent
|
|
120
|
+
- document_qa
|
|
121
|
+
- api_agent
|
|
122
|
+
- multi_agent
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
## Resources
|
|
126
|
+
|
|
127
|
+
The server also exposes resources for bulk access:
|
|
128
|
+
|
|
129
|
+
- `flowise://categories` - All categories
|
|
130
|
+
- `flowise://nodes` - All nodes
|
|
131
|
+
- `flowise://templates` - All templates
|
|
132
|
+
|
|
133
|
+
## Database Schema
|
|
134
|
+
|
|
135
|
+
The SQLite database contains:
|
|
136
|
+
|
|
137
|
+
- **nodes** - All Flowise node definitions
|
|
138
|
+
- **node_inputs** - Input parameters for each node
|
|
139
|
+
- **categories** - Node categories with counts
|
|
140
|
+
- **templates** - Marketplace templates
|
|
141
|
+
- **nodes_fts** - Full-text search index for nodes
|
|
142
|
+
- **templates_fts** - Full-text search index for templates
|
|
143
|
+
|
|
144
|
+
## Development
|
|
145
|
+
|
|
146
|
+
```bash
|
|
147
|
+
# Run in development mode
|
|
148
|
+
npm run dev
|
|
149
|
+
|
|
150
|
+
# Extract nodes from Flowise source
|
|
151
|
+
npm run extract
|
|
152
|
+
|
|
153
|
+
# Prepare SQLite database
|
|
154
|
+
npm run prepare-db
|
|
155
|
+
|
|
156
|
+
# Build for production
|
|
157
|
+
npm run build
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
## How It Works
|
|
161
|
+
|
|
162
|
+
1. **Extraction**: Parses Flowise source code to extract all node definitions
|
|
163
|
+
2. **Database**: Stores nodes, inputs, and templates in SQLite for fast queries
|
|
164
|
+
3. **MCP Server**: Exposes tools and resources via Model Context Protocol
|
|
165
|
+
4. **AI Integration**: Claude/GPT can query nodes, search, and validate flows
|
|
166
|
+
|
|
167
|
+
## Credits
|
|
168
|
+
|
|
169
|
+
- [Flowise](https://github.com/FlowiseAI/Flowise) - The amazing no-code LLM orchestration platform
|
|
170
|
+
- Inspired by [n8n-mcp](https://github.com/czlonkowski/n8n-mcp) architecture
|
|
171
|
+
|
|
172
|
+
## License
|
|
173
|
+
|
|
174
|
+
MIT
|
package/data/flowise.db
ADDED
|
Binary file
|