flowiq-mcp 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,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Kaike Southier Leite
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,111 @@
1
+ Metadata-Version: 2.4
2
+ Name: flowiq-mcp
3
+ Version: 0.1.0
4
+ Summary: A read-only MCP server for FlowIQ
5
+ License-Expression: MIT
6
+ Project-URL: Homepage, https://flowiq-labs.com
7
+ Project-URL: Documentation, https://flowiq-labs.com/api-docs
8
+ Project-URL: Source, https://github.com/flowiq-labs/flowiq
9
+ Project-URL: Issues, https://github.com/flowiq-labs/flowiq/issues
10
+ Keywords: internet measurement,attack surface,exposure,threat intelligence,osint,security,search,mcp,model context protocol
11
+ Classifier: Development Status :: 4 - Beta
12
+ Classifier: Environment :: Console
13
+ Classifier: Intended Audience :: Information Technology
14
+ Classifier: Intended Audience :: System Administrators
15
+ Classifier: Operating System :: OS Independent
16
+ Classifier: Programming Language :: Python :: 3
17
+ Classifier: Topic :: Internet
18
+ Classifier: Topic :: Security
19
+ Requires-Python: >=3.9
20
+ Description-Content-Type: text/markdown
21
+ License-File: LICENSE
22
+ Requires-Dist: flowiq>=0.1.0
23
+ Dynamic: license-file
24
+
25
+ <!-- mcp-name: com.flowiq-labs/flowiq-mcp -->
26
+ # flowiq-mcp
27
+
28
+ Lets an assistant (Claude and anything else that speaks the Model Context Protocol) search FlowIQ. It runs
29
+ on your machine, talks to the assistant on stdin and stdout, and calls the FlowIQ API with your key. It can
30
+ only read: it cannot start an export, change your account or contact a host.
31
+
32
+ Python 3.9 or later and the `flowiq` client beside it. No other packages.
33
+
34
+ ## Set it up
35
+
36
+ pip install flowiq-mcp
37
+
38
+ which installs the `flowiq` client with it. Or run it without installing, with [uv](https://docs.astral.sh/uv/): `uvx flowiq-mcp`.
39
+
40
+ Then tell the assistant to start `flowiq-mcp`. In Claude Desktop that is `claude_desktop_config.json`:
41
+
42
+ ```json
43
+ {
44
+ "mcpServers": {
45
+ "flowiq": {
46
+ "command": "flowiq-mcp",
47
+ "env": { "FLOWIQ_API_KEY": "sk_live_..." }
48
+ }
49
+ }
50
+ }
51
+ ```
52
+
53
+ Without installing, from a checkout in `/path/to/flowiq`:
54
+
55
+ ```json
56
+ {
57
+ "mcpServers": {
58
+ "flowiq": {
59
+ "command": "python3",
60
+ "args": ["-m", "flowiq_mcp"],
61
+ "env": {
62
+ "FLOWIQ_API_KEY": "sk_live_...",
63
+ "PYTHONPATH": "/path/to/flowiq/clients/python:/path/to/flowiq/clients/mcp"
64
+ }
65
+ }
66
+ }
67
+ }
68
+ ```
69
+
70
+ (On Windows the two paths are separated by `;`.) In Claude Code, with the key already in your environment:
71
+
72
+ claude mcp add flowiq -- flowiq-mcp
73
+
74
+ The key is in that file in the clear, so keep the file yours. The assistant never sees it.
75
+
76
+ ## The tools
77
+
78
+ | tool | what it answers | credits |
79
+ |---|---|---|
80
+ | `search` | records that match a query; 25 unless asked for more, 200 at most | 1 a record, at least 1 |
81
+ | `count` | how many services and hosts match | 1 |
82
+ | `host` | everything held about one address | 1 a service on it, plus 1 to count them first |
83
+ | `domain` | names under a domain; 25 unless asked for more, 200 at most | 1 a name, at least 1 |
84
+ | `breakdown` | the most common values of a field; 25 unless asked for more, 200 at most | 1 a value, at least 1 |
85
+ | `fields` | the fields `breakdown` accepts | none |
86
+ | `query_help` | the query language, without a network call | none |
87
+ | `account` | credits left | none |
88
+
89
+ `host` does not fetch an address with more than 100 services unless it is told it may (`max_credits`): a
90
+ machine that answers on two thousand ports costs two thousand credits.
91
+
92
+ Answers are compact JSON: empty values are left out, long text is cut and says so, and every answer that
93
+ costs something says how much (`credits`). Titles, banners and names are written by whoever runs a service,
94
+ so the tools tell the assistant that they are data and not instructions, and characters that would be
95
+ invisible arrive as visible escapes. That lowers the risk of a page giving your assistant orders. It does not
96
+ remove it: keep the assistant's other tools on a leash when it reads what strangers wrote.
97
+
98
+ FlowIQ records what a service returned. It makes no claim that a host is vulnerable.
99
+
100
+ ## Protocol
101
+
102
+ It answers both kinds of client: those that speak 2026-07-28 (no handshake) and those that begin with
103
+ `initialize` (2025-11-25, 2025-06-18, 2025-03-26, 2024-11-05).
104
+
105
+ ## Tests
106
+
107
+ cd clients/mcp
108
+ python -m unittest
109
+
110
+ They use the client and the fake server of `clients/python` and no network. `query_help.json` is generated from
111
+ the server's own description of the query language, and updated with each release.
@@ -0,0 +1,87 @@
1
+ <!-- mcp-name: com.flowiq-labs/flowiq-mcp -->
2
+ # flowiq-mcp
3
+
4
+ Lets an assistant (Claude and anything else that speaks the Model Context Protocol) search FlowIQ. It runs
5
+ on your machine, talks to the assistant on stdin and stdout, and calls the FlowIQ API with your key. It can
6
+ only read: it cannot start an export, change your account or contact a host.
7
+
8
+ Python 3.9 or later and the `flowiq` client beside it. No other packages.
9
+
10
+ ## Set it up
11
+
12
+ pip install flowiq-mcp
13
+
14
+ which installs the `flowiq` client with it. Or run it without installing, with [uv](https://docs.astral.sh/uv/): `uvx flowiq-mcp`.
15
+
16
+ Then tell the assistant to start `flowiq-mcp`. In Claude Desktop that is `claude_desktop_config.json`:
17
+
18
+ ```json
19
+ {
20
+ "mcpServers": {
21
+ "flowiq": {
22
+ "command": "flowiq-mcp",
23
+ "env": { "FLOWIQ_API_KEY": "sk_live_..." }
24
+ }
25
+ }
26
+ }
27
+ ```
28
+
29
+ Without installing, from a checkout in `/path/to/flowiq`:
30
+
31
+ ```json
32
+ {
33
+ "mcpServers": {
34
+ "flowiq": {
35
+ "command": "python3",
36
+ "args": ["-m", "flowiq_mcp"],
37
+ "env": {
38
+ "FLOWIQ_API_KEY": "sk_live_...",
39
+ "PYTHONPATH": "/path/to/flowiq/clients/python:/path/to/flowiq/clients/mcp"
40
+ }
41
+ }
42
+ }
43
+ }
44
+ ```
45
+
46
+ (On Windows the two paths are separated by `;`.) In Claude Code, with the key already in your environment:
47
+
48
+ claude mcp add flowiq -- flowiq-mcp
49
+
50
+ The key is in that file in the clear, so keep the file yours. The assistant never sees it.
51
+
52
+ ## The tools
53
+
54
+ | tool | what it answers | credits |
55
+ |---|---|---|
56
+ | `search` | records that match a query; 25 unless asked for more, 200 at most | 1 a record, at least 1 |
57
+ | `count` | how many services and hosts match | 1 |
58
+ | `host` | everything held about one address | 1 a service on it, plus 1 to count them first |
59
+ | `domain` | names under a domain; 25 unless asked for more, 200 at most | 1 a name, at least 1 |
60
+ | `breakdown` | the most common values of a field; 25 unless asked for more, 200 at most | 1 a value, at least 1 |
61
+ | `fields` | the fields `breakdown` accepts | none |
62
+ | `query_help` | the query language, without a network call | none |
63
+ | `account` | credits left | none |
64
+
65
+ `host` does not fetch an address with more than 100 services unless it is told it may (`max_credits`): a
66
+ machine that answers on two thousand ports costs two thousand credits.
67
+
68
+ Answers are compact JSON: empty values are left out, long text is cut and says so, and every answer that
69
+ costs something says how much (`credits`). Titles, banners and names are written by whoever runs a service,
70
+ so the tools tell the assistant that they are data and not instructions, and characters that would be
71
+ invisible arrive as visible escapes. That lowers the risk of a page giving your assistant orders. It does not
72
+ remove it: keep the assistant's other tools on a leash when it reads what strangers wrote.
73
+
74
+ FlowIQ records what a service returned. It makes no claim that a host is vulnerable.
75
+
76
+ ## Protocol
77
+
78
+ It answers both kinds of client: those that speak 2026-07-28 (no handshake) and those that begin with
79
+ `initialize` (2025-11-25, 2025-06-18, 2025-03-26, 2024-11-05).
80
+
81
+ ## Tests
82
+
83
+ cd clients/mcp
84
+ python -m unittest
85
+
86
+ They use the client and the fake server of `clients/python` and no network. `query_help.json` is generated from
87
+ the server's own description of the query language, and updated with each release.
@@ -0,0 +1,3 @@
1
+ """FlowIQ for assistants: a read-only MCP server over the FlowIQ client."""
2
+
3
+ __version__ = "0.1.0"
@@ -0,0 +1,6 @@
1
+ import sys
2
+
3
+ from .server import main
4
+
5
+ if __name__ == "__main__":
6
+ sys.exit(main())