Skip to main content
Glama
YourAppSpace MCP Server

YourAppSpace MCP Server

Official

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).

Live Demo Documentation Video Tutorial yourappspace/yourappspace-mcp MCP server License: MIT


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 TABLE or 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.


Related MCP server: QuickChart MCP Server

Prerequisites

  • Node.js >= 20.20 and npm >= 10.8

  • A YourAppSpace Core account or instant demo workspace:

    1. Open core.yourappspace.com and click Try now (no sign-up required) or sign in to your workspace.

    2. 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:

Copy your API Key from the YourAppSpace welcome message


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

  1. Open Settings → Tools → AI Assistant → Model Context Protocol (MCP).

  2. Click + Add and select STDIO.

  3. 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_KEY is set, no username or password is needed — the key is sent directly in the X-Auth header (and does not fall back to username/password on failure). (Legacy MCP_ENTITY_USER / MCP_ENTITY_PASSWORD auth is only used if MCP_ENTITY_API_KEY is 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_KEY or MCP_ENTITY_BASE_URL, restart your MCP client and call list_tables with {"offset": 0, "limit": 1}.

    • On HTTP 401: check the key value (including the ip_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.


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.md to CLAUDE.md in your project root.

  • Codex CLI: Copy BASE_PROMPT.md to AGENTS.md in 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:

  1. comment — multi-line text for the customer's review

  2. rating — integer score from 1 to 5

  3. status — combobox enumeration with values New, Reviewed, and Resolved

  4. interaction — lookup reference linking to the existing Interaction (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_feedback linked to existing Interaction records:

  • 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_feedback for all records where rating >= 4, show the matching rows, and calculate the total matching count, average rating, and breakdown by status.

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:

  1. Click "Sign Up Free" in the top-right bar of your YourAppSpace workspace.

  2. 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


License

MIT

Available Tools

9 tools
add_fieldA

Add a new column or lookup relationship to an existing table. Non-destructive schema mutation (existing rows receive null for the new field); requires administrative permissions. Specify either fieldType for a scalar column OR lookupEntity (and optional lookupField) for a foreign-key reference. Use create_table to create a new table, get_table to inspect existing fields, and delete_field to remove a field. Returns { field: { id, fieldName, displayName, fieldType, lookupEntity, lookupField } }.

Inputs: fieldName (required), tableName (required), fieldType, displayName, +2 more.

create_rowsA

Insert one or multiple new records into an entity type. Mutates data, enforcing row/field permissions and workspace tariff limits. Pass item for a single record OR items for batch insertion (do not pass both). Custom tables typically require displayname—call get_table first to check required fields. Bulk inserts are non-atomic: each row is processed independently and the response returns { count, items: [{ status: 'ok', item }], errors: [{ status: 'error', index, message }] }. Use update_rows to modify existing records.

Inputs: tableName (required), item, items, returnFields.

create_tableA

Create a new custom entity type (table) in the active workspace. Schema-mutating operation requiring administrative permissions. Newly created tables automatically include system columns such as <tableName>id (PK) and displayname (required when inserting rows). Check list_tables first to avoid duplicates; use add_field afterwards to add custom columns or lookups. Returns { entityType: { id, tableName, displayName, dataSourceType, workspaceId } }.

Inputs: tableName (required), displayName.

delete_fieldA
Destructive

Permanently delete a non-key field from an entity type. Irreversible destructive schema mutation: removes the column definition and its stored values across all existing rows; requires administrative permissions. System/primary key fields cannot be deleted. Use get_table first to verify the field name, add_field to add columns, or delete_rows to delete records instead of columns. Returns confirmation of the deleted field.

Inputs: fieldName (required), tableName (required).

delete_rowsA
Destructive

Permanently delete one or multiple records by primary key. Irreversible destructive operation enforcing RLS permissions. Pass item for a single delete OR items for batch deletion (not both). Each object only needs the primary key field (e.g. { "customer_feedbackid": 1 }; other fields are ignored). Bulk deletes are non-atomic and return { count, items: [{ status: 'ok', item }], errors: [{ status: 'error', index, message }] }. Use update_rows to modify rows or delete_field to drop a column.

Inputs: tableName (required), item, items.

get_tableA
Read-onlyIdempotent

Fetch full metadata, primary key name, and column/field definitions for a single entity type. Read-only. Provide either idOrName (numeric table ID or system tableName) or tableName. Always call this before create_rows, update_rows, or read_rows to discover exact field names, data types, lookup targets, and required fields (such as displayname). Returns { entityType: {...}, fields: [...] }.

Inputs: idOrName, tableName.

list_tablesA
Read-onlyIdempotent

List entity types (tables) accessible to the authenticated user (enforcing workspace permissions). Read-only. Omit both offset and limit to retrieve the full legacy list; provide offset and/or limit for paginated results. Returns { meta: { total, offset, limit, hasMore, returned }, items: [{ id, tableName, displayName, dataSourceType, workspaceId }] } (or an array in legacy mode). Follow with get_table to inspect a table's columns.

Inputs: limit, offset.

read_rowsA
Read-onlyIdempotent

Query records from an entity type with optional filtering, sorting, and pagination. Read-only; enforces Row-Level and Field-Level Security (RLS & FLS). Filtering options: use whereQuery (SQL-like condition, e.g. rating >= 4) with optional params bind map (:paramName), OR pass structured filters JSON (do not combine conflicting filters). Returns { meta: { offset, limit, returned, total? }, items: [...] }. Call get_table first to verify filterable field names.

Inputs: tableName (required), limit, offset, params, +4 more.

update_rowsA
Idempotent

Partially update (patch) one or multiple existing records by primary key. Mutates data, enforcing RLS & FLS. Pass item for a single update OR items for batch updates (not both). Each object MUST include the table's primary key (<tableName>id) plus at least one field to update (only provided fields are modified). Bulk updates are non-atomic and return { count, items: [{ status: 'ok', item }], errors: [{ status: 'error', index, message }] }. Use create_rows for new records or delete_rows to remove records.

Inputs: tableName (required), item, items, returnFields.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.4/5.0

    Scored across 9 tools

    Disambiguation5/5

    Tools are cleanly separated along two axes: schema operations (create_table, add_field, delete_field, list_tables, get_table) versus data operations (create_rows, read_rows, update_rows, delete_rows). Each name maps to a distinct resource+action, and descriptions cross-reference related tools to reinforce boundaries. No realistic confusion between tools.

    Naming Consistency4/5

    All nine tools follow a snake_case verb_noun pattern (create_table, get_table, read_rows, etc.), which is predictable. Minor deviations exist in verb choice for similar operations (add_field vs create_table, get_table vs read_rows), but the overall convention is consistent and readable.

    Tool Count5/5

    Nine tools is well within the ideal 3-15 range and each earns its place: a tight schema-management subset plus a complete row-CRUD subset. Nothing feels redundant or padded for the scope of a data platform.

    Completeness3/5

    Row-level CRUD is fully covered (create/read/update/delete) and schema creation/field management is present, but the table-level lifecycle is incomplete: there is no delete_table, update_table (rename), or update_field operation. These are notable gaps that would force agents to dead-end on common administrative tasks.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Turns your data model into a semantic layer for AI agents, automatically generating typed, discoverable tools with entity relationships and schema discovery.
      644
      Apache 2.0
    • A
      license
      A
      quality
      C
      maintenance
      A Model Context Protocol server that renders Apache ECharts options to SVG, enabling AI agents to generate deterministic charts server-side without a browser.
      3
      10 npm
      Apache 2.0
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI assistants to build and update complete applications, including creating, updating, publishing, previewing, and configuring databases, security, permissions, and server-side integrations.
      Apache 2.0