YourAppSpace Core MCP
AI-ready backend for coding agents with a visual schema designer, built-in Data Grid UI, auto-generated REST APIs, and Row/Field-Level Security (RLS & FLS).
Documentation
YourAppSpace MCP Server
Give AI coding agents (Claude Code, Cursor, OpenAI Codex CLI, JetBrains AI Assistant) a structured backend with a built-in Visual Schema Designer, Data Grid UI, auto-generated REST APIs, and Row/Field-Level Security (RLS & FLS).
Why YourAppSpace MCP?
Most database MCP servers give an LLM raw SQL access to a database—risking destructive schema changes, leaking restricted columns, and leaving you with no UI to inspect or manage the data.
YourAppSpace Core solves this by pairing an AI-ready Entity MCP with a Visual Data Platform:
- Visual Schema + Data Grid UI: Everything your AI agent creates via MCP (
create_table,add_field,create_rows) immediately appears in a live visual schema designer and spreadsheet-like Data Grid UI with filtering and Excel/CSV export. - Safe by Design (RLS & FLS): Agents operate through the platform's Entity API governed by Row-Level Security and Field-Level Security instead of raw SQL—no accidental
DROP TABLEor unauthorized field reads. - Instant REST APIs: Every table modeled by your agent automatically exposes documented REST endpoints.
- Zero Vendor Lock-in: Run on YourAppSpace Cloud (
https://core.yourappspace.com) or deploy on-premise via Docker.
Hosted Remote MCP (Zero-Install) — Coming Soon: In the next release of YourAppSpace Core, you will be able to connect directly to a Hosted Remote MCP endpoint (Streamable HTTP) straight from your workspace URL—requiring zero local installation, no Node.js, and no local processes. Until then (and for local Docker / air-gapped on-premise deployments), use this lightweight open-source STDIO connector.
Prerequisites
- Node.js
>= 20.20and npm>= 10.8 - A YourAppSpace Core account or instant demo workspace:
- Open core.yourappspace.com and click Try now (no sign-up required) or sign in to your workspace.
- Immediately after signing in, open the welcome message on the right panel and copy your API Key (
ip_api_key_...) from the YOUR API KEY FOR REST & MCP section:

Quick Start (npx — Recommended)
You can run the MCP server directly via npx without cloning the repository:
{
"mcpServers": {
"dev-entity": {
"command": "npx",
"args": ["-y", "@yourappspace/mcp-server"],
"env": {
"MCP_ENTITY_API_KEY": "<api-key>"
}
}
}
}
Or clone the repository locally:
git clone https://github.com/yourappspace/yourappspace-mcp.git
cd yourappspace-mcp
npm install
Client Configuration
Replace <api-key> with your full ip_api_key_... value. MCP_ENTITY_BASE_URL defaults to https://core.yourappspace.com and only needs to be added for self-hosted/Docker instances. (If running from a cloned repo instead of npx, set "command": "node" and "args": ["<path_to_repo>/server.js"].)
1. Claude Code (.mcp.json)
Create or update .mcp.json in your project root:
{
"mcpServers": {
"dev-entity": {
"command": "npx",
"args": ["-y", "@yourappspace/mcp-server"],
"env": {
"MCP_ENTITY_API_KEY": "<api-key>"
}
}
}
}
Verify active tools inside Claude Code by running /mcp.
2. Cursor (.cursor/mcp.json)
Add to .cursor/mcp.json in your project or global ~/.cursor/mcp.json:
{
"mcpServers": {
"dev-entity": {
"command": "npx",
"args": ["-y", "@yourappspace/mcp-server"],
"env": {
"MCP_ENTITY_API_KEY": "<api-key>"
}
}
}
}
3. OpenAI Codex CLI (~/.codex/config.toml)
[mcp_servers.dev-entity]
command = "npx"
args = ["-y", "@yourappspace/mcp-server"]
[mcp_servers.dev-entity.env]
MCP_ENTITY_API_KEY = "<api-key>"
4. JetBrains IntelliJ IDEA AI Assistant
- Open Settings → Tools → AI Assistant → Model Context Protocol (MCP).
- Click + Add and select STDIO.
- Paste the JSON configuration above (same format as Claude Code / Cursor) and click Apply.
Authentication & Environment Variables
| Variable | Description | Example |
|---|---|---|
MCP_ENTITY_API_KEY | Full user API key with the ip_api_key_ prefix (without Bearer). Sent in the X-Auth header. | ip_api_key_... |
MCP_ENTITY_BASE_URL | (Optional) Defaults to https://core.yourappspace.com; set only for self-hosted/Docker instances such as http://localhost:8080. | https://core.yourappspace.com |
Important Authentication Notes
- API Key only: When
MCP_ENTITY_API_KEYis set, no username or password is needed — the key is sent directly in theX-Authheader (and does not fall back to username/password on failure). (LegacyMCP_ENTITY_USER/MCP_ENTITY_PASSWORDauth is only used ifMCP_ENTITY_API_KEYis omitted.) - Permissions: Requests execute under the permissions of the API key owner (or signed-in user), enforcing table and record access maps (RLS & FLS).
- Verifying the connection: Viewing the tool list does not verify authentication. After saving or changing
MCP_ENTITY_API_KEYorMCP_ENTITY_BASE_URL, restart your MCP client and calllist_tableswith{"offset": 0, "limit": 1}.- On HTTP
401: check the key value (including theip_api_key_prefix), its expiration date, its owner, and API key support on the target instance. - On HTTP
403: verify the user's permissions for the requested table or operation.
- On HTTP
Available MCP Tools (9 Tools)
| Tool | Purpose | Modifies Data |
|---|---|---|
list_tables | Lists accessible tables across user and system spaces | No |
get_table | Retrieves table metadata, column types, and schema definition | No |
create_table | Creates a new custom table in the active workspace | Yes |
add_field | Adds a data column (INTEGER, STRING, TEXT, combobox, etc.) or lookup relationship | Yes |
delete_field | Deletes a non-key field from an entity type | Yes |
read_rows | Queries records with WHERE / JSON filters, ordering, and pagination | No |
create_rows | Inserts one or multiple records in batch mode | Yes |
update_rows | Updates one or multiple records by primary key | Yes |
delete_rows | Deletes one or multiple records by primary key | Yes |
System Prompt for AI Agents (BASE_PROMPT.md)
This repository includes BASE_PROMPT.md, which gives AI agents full knowledge of YourAppSpace core data types, field widgets (combobox, lookup, etc.), and schema conventions:
- Claude Code: Copy
BASE_PROMPT.mdtoCLAUDE.mdin your project root. - Codex CLI: Copy
BASE_PROMPT.mdtoAGENTS.mdin your project root. - IntelliJ AI Assistant: Add it to Settings → Tools → AI Assistant → Prompt Library.
Examples: Prompt & Result
Below is a complete end-to-end workflow inspired by our YouTube walkthrough, showing how an AI agent creates a table with multiple field types, populates records, and runs filtered + aggregated queries.
1. Create a Table with Multiple Field Types (Text, Numeric, Combobox, Reference)
Prompt:
Create a new table called
Customer Feedback(customer_feedback) with 4 fields:
comment— multi-line text for the customer's reviewrating— integer score from 1 to 5status— combobox enumeration with valuesNew,Reviewed, andResolvedinteraction— lookup reference linking to the existingInteraction(interaction) table
Result:
The agent invokes create_table followed by add_field for each column and confirms the live schema:
Created table "Customer Feedback" (system name: customer_feedback, id: 6204)
Fields added:
- comment | TEXT | widget: textarea | Label: "Comment"
- rating | INTEGER | widget: number | Label: "Rating"
- status | STRING | widget: combobox | Values: ["New", "Reviewed", "Resolved"]
- interaction | BIGINT | widget: lookup | Reference: interaction (Interaction)
You can now inspect the schema in Data Model Designer or open the Data Grid at My Application -> My Tables -> customer_feedback.
2. Insert Records into the New Table
Prompt:
Add 4 sample feedback records into
customer_feedbacklinked to existingInteractionrecords:
- Interaction 1: rating 5, status
Reviewed, comment"Fast response and clear onboarding walkthrough"- Interaction 2: rating 4, status
New, comment"Helpful consultation, minor follow-up needed"- Interaction 3: rating 2, status
New, comment"Took too long to get an initial reply"- Interaction 4: rating 5, status
Resolved, comment"Issue resolved quickly on the first call"
Result:
The agent calls read_rows on interaction to verify valid interaction IDs, then executes create_rows in batch mode on customer_feedback:
Inserted 4 records into customer_feedback:
| id | interaction | rating | status | comment |
| --- | -------------------- | ------ | -------- | ------------------------------------------------ |
| 101 | Interaction 1 (id:1) | 5 | Reviewed | Fast response and clear onboarding walkthrough |
| 102 | Interaction 2 (id:2) | 4 | New | Helpful consultation, minor follow-up needed |
| 103 | Interaction 3 (id:3) | 2 | New | Took too long to get an initial reply |
| 104 | Interaction 4 (id:4) | 5 | Resolved | Issue resolved quickly on the first call |
3. Query with Filtering and Aggregation
Prompt:
Query
customer_feedbackfor all records whererating >= 4, show the matching rows, and calculate the total matching count, average rating, and breakdown bystatus.
Result:
The agent calls read_rows with a filter (rating >= 4) and aggregates the returned dataset:
Filtered records from customer_feedback (rating >= 4):
| id | interaction | rating | status | comment |
| --- | ----------- | ------ | -------- | ---------------------------------------------- |
| 101 | 1 | 5 | Reviewed | Fast response and clear onboarding walkthrough |
| 102 | 2 | 4 | New | Helpful consultation, minor follow-up needed |
| 104 | 4 | 5 | Resolved | Issue resolved quickly on the first call |
Summary & Aggregation (rating >= 4):
- Matching records: 3 of 4 total
- Average rating: 4.67
- Breakdown by status:
- New: 1
- Reviewed: 1
- Resolved: 1
Demo Limits & Registration
If you started with an instant Demo Mode workspace (via Try now on core.yourappspace.com), your workspace includes a starter quota for records and API/MCP requests.
When you see an error indicating that the record count or request limit has been reached (for example, The tariff limit "Record count" has been exhausted...), simply:
- Click "Sign Up Free" in the top-right bar of your YourAppSpace workspace.
- Enter your email address and complete registration by confirming your email via the link sent to your inbox.
Once your email is confirmed, your workspace is saved permanently with higher free-tier limits (or you can upgrade to a paid plan as your project grows).
Resources
- Live Sandbox (No Sign-Up Required): core.yourappspace.com
- Video Walkthrough: YouTube — YourAppSpace MCP Server Tutorial
- Full Documentation: yourappspace.com/docs.html