AJEMS MCP Connector
Enables AI assistants to query and optionally modify AJEMS workspaces, including apps, forms, and records, without requiring user login.
README
AJEMS MCP Connector
Lets Claude and ChatGPT answer questions about an AJEMS workspace — and optionally create apps, forms and records — without anyone logging into AJEMS.
One deployment serves every tenant. Users sign in with their organisation name and AJEMS secret key.
Files
| File | Role |
|---|---|
server.js |
Config, authentication, HTTP transport, health, shutdown |
tools.js |
Every tool the AI can call |
ajems.js |
The only module that talks to the AJEMS API |
oauth.js |
The OAuth handshake Claude and ChatGPT require |
cache.js |
Per-tenant caching and upstream concurrency limiting |
util.js |
Small shared helpers |
diagnose.js |
11-step end-to-end checker |
mock-ajems.js |
Fake AJEMS with sample data, for testing without a live workspace |
Quick start
npm install
cp .env.example .env # set PUBLIC_URL and AJEMS_HOST_TEMPLATE
npm start
Verify against a real workspace:
node diagnose.js https://mcp.ajems.com <organisation> <secret-key>
Or try it with no AJEMS at all:
npm run mock # terminal 1
# set AJEMS_HOST_TEMPLATE=http://localhost:9090/{org}/json_builder
npm start # terminal 2
node diagnose.js http://localhost:8080 testco test-secret-key
See DEPLOY.md for nginx, TLS, pm2 and tuning.
Tools
Read-only by default. Set ALLOW_WRITES=true for the four write tools.
| Tool | Purpose |
|---|---|
list_apps_and_forms |
Discovery — every app and form, with readable/writable flags |
describe_form |
Field keys, human labels, types, dropdown options |
query_responses |
Records with filters, date range, field selection |
aggregate_responses |
count / sum / avg / min / max, optionally grouped |
create_app |
New app |
create_form |
New form; field keys generated automatically |
create_record |
One or many records, inserted with bounded concurrency |
update_record |
Change fields on an existing record |
search |
Keyword search across forms and records (ChatGPT) |
fetch |
Full detail for one search result (ChatGPT) |
aggregate_responses computes on the server. Without it, "total by city" would pull thousands of rows into the model's context and count them by hand — slow, expensive, and wrong past a certain size.
search and fetch exist because outside Developer Mode, ChatGPT only calls tools with those two names and ignores everything else.
How a question gets answered
Claude asks "how many entries in July, by city?":
list_apps_and_forms→ finds the formdescribe_form→ learns thatdate_1750943312417is the date field anddropdown_1750943301432holds citiesaggregate_responseswith a date range andgroup_by→ gets three numbers back- Writes the answer in plain English
Field keys are auto-generated (date_1750943312417), which is why step 2 is not optional. The tool descriptions tell the model this, and it chains the calls itself.
Tenant isolation
- Tenant comes from the session, resolved server-side from the bearer token
- No tool schema has a
tenant,orgorurlparameter — nothing exists for a model to be talked into changing ajems.jsis the only module issuing outbound requests, and only to that tenant's base URL- Cache keys are namespaced by tenant and a hash of the secret key, so tenants can't read each other's cached entries and a rotated key self-expires
- Organisation names are stripped to subdomain-safe characters, so an entry like
evil.com/xcan't redirect the server elsewhere - Every tool call is logged as JSON with tenant and user
When adding a tool, re-check the second point.
Testing
46 checks pass against the mock: authentication, all 10 tools, filters, date ranges, the created_at fallback, grouped aggregation, bulk insert, cache invalidation after writes, error messages, tenant isolation, 20 concurrent users, and rate limiting.
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。