---
title: "View source for AI Services/Mcp Faq - DreamFactory Wiki"
source: "http://wiki.dreamfactory.com/index.php?action=edit&title=AI_Services%2FMcp_Faq"
canonical_url: "http://wiki.dreamfactory.com/index.php?action=edit&title=AI_Services%2FMcp_Faq"
converted_at: "2026-11-24T16:09:11.120Z"
format: "markdown"
converted_by: "html-to-md-ai"
---
[]()
	
	
	
	# View source for AI Services/Mcp Faq

	
		
		← [AI Services/Mcp Faq](/AI_Services/Mcp_Faq)
		
		
		
		[Jump to navigation](#mw-head)
		[Jump to search](#searchInput)
		You do not have permission to edit this page, for the following reason:

The action you have requested is limited to users in the group: [Users](/index.php?title=DreamFactory_Wiki:Users&action=edit&redlink=1).---

You can view and copy the source of this page.

{{#seo:
|title=MCP FAQ - DreamFactory Documentation
|title_mode=replace
|description=Frequently asked questions about DreamFactory's Model Context Protocol (MCP) server — what it is, what tools it provides, and how to use it.
|keywords=MCP, Model Context Protocol, FAQ, tools, AI integration, DreamFactory MCP
|og:title=MCP FAQ
|og:type=article
|og:site_name=DreamFactory Documentation
|og:description=Frequently asked questions about DreamFactory's Model Context Protocol (MCP) server — what it is, what tools it provides, and how to use it.
}}
'''Frequently asked questions about DreamFactory's Model Context Protocol (MCP) server — what it is, what tools it provides, and how to use it.'''

&lt;span id="mcp-frequently-asked-questions">&lt;/span>
= MCP Frequently Asked Questions =

&lt;span id="what-is-the-model-context-protocol">&lt;/span>
== What is the Model Context Protocol? ==

The Model Context Protocol (MCP) is an open standard that allows AI assistants (like Claude, ChatGPT, and Cursor) to connect to external tools and data sources through a consistent interface. Instead of each AI tool needing a custom integration, MCP provides a single protocol that any compatible client can use.

In DreamFactory, MCP means you can connect an AI assistant directly to all your databases and file storage through a single endpoint — the AI can then query tables, read files, and manipulate data using natural language.

&lt;span id="what-is-dreamfactorys-mcp-server-service">&lt;/span>
== What is DreamFactory's MCP Server service? ==

DreamFactory's MCP Server service is a built-in feature that exposes your DreamFactory APIs as MCP-compatible tools. When an AI client connects, it automatically discovers all database and file storage services in your DreamFactory instance and can interact with them using the MCP protocol over Streamable HTTP (JSON-RPC).

Key facts: - '''One MCP service covers all your APIs''' — no need to create one per database - '''Authentication''' uses OAuth 2.0 with auto-generated Client ID and Client Secret - '''Transport''' is Streamable HTTP with Server-Sent Events (SSE) for streaming - '''Created in the admin UI''' under the AI tab

&lt;span id="what-tools-does-the-mcp-server-provide">&lt;/span>
== What tools does the MCP server provide? ==

Tools are automatically generated for every connected database and file service. All tool names are prefixed with the API name (e.g., &lt;code>mysql_get_tables&lt;/code>, &lt;code>s3_list_files&lt;/code>).

&lt;span id="discovery-tools">&lt;/span>
=== Discovery tools ===

* &lt;code>list_apis&lt;/code> — list all available APIs accessible through this MCP server
* &lt;code>list_tools&lt;/code> — list all available MCP tools for the current session
* &lt;code>{prefix}_get_data_model&lt;/code> — get full schema overview (tables, columns, foreign keys, row counts)
* &lt;code>{prefix}_get_api_spec&lt;/code> — retrieve the OpenAPI spec with query syntax hints

&lt;span id="database-tools">&lt;/span>
=== Database tools ===

* &lt;code>{prefix}_get_tables&lt;/code> — list all tables
* &lt;code>{prefix}_get_table_schema&lt;/code> — get schema for a specific table
* &lt;code>{prefix}_get_table_data&lt;/code> — query data with filtering, pagination, sorting
* &lt;code>{prefix}_get_table_fields&lt;/code> — get field definitions including types and constraints
* &lt;code>{prefix}_get_table_relationships&lt;/code> — get foreign key relationships
* &lt;code>{prefix}_aggregate_data&lt;/code> — SUM, COUNT, AVG, MIN, MAX aggregations
* &lt;code>{prefix}_create_records&lt;/code> — insert new records
* &lt;code>{prefix}_update_records&lt;/code> — update existing records
* &lt;code>{prefix}_delete_records&lt;/code> — delete records
* &lt;code>{prefix}_get_stored_procedures&lt;/code> — list stored procedures
* &lt;code>{prefix}_call_stored_procedure&lt;/code> — execute a stored procedure
* &lt;code>{prefix}_get_stored_functions&lt;/code> — list stored functions
* &lt;code>{prefix}_call_stored_function&lt;/code> — execute a stored function

&lt;span id="file-storage-tools">&lt;/span>
=== File storage tools ===

* &lt;code>{prefix}_list_files&lt;/code> — list files and folders
* &lt;code>{prefix}_get_file_content&lt;/code> — read a file
* &lt;code>{prefix}_create_folder&lt;/code> — create a folder
* &lt;code>{prefix}_delete_file&lt;/code> — delete a file or folder

&lt;span id="how-do-i-create-an-mcp-server-service">&lt;/span>
== How do I create an MCP Server service? ==

# Log in as admin → click the '''AI''' tab
# Click the purple '''+''' button → select '''MCP Server Service'''
# Fill in '''API namespace''' (lowercase alphanumeric), '''label''', and '''description'''
# Save — DreamFactory auto-generates OAuth Client ID and Client Secret
# Give the Client ID and Secret to your AI client (ChatGPT, Claude, Cursor, etc.)

See [[AI_Services/Mcp_Service_Creation|Creating an MCP Server Service]] for the full walkthrough.

&lt;span id="how-does-an-ai-client-connect-to-the-mcp-server">&lt;/span>
== How does an AI client connect to the MCP server? ==

The client sends an initialization request to &lt;code>POST /mcp/{service-name}&lt;/code>:

&lt;syntaxhighlight lang="bash">curl -i -X POST https://your-dreamfactory-host/mcp/{service-name} \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "initialize",
    "params": {
      "protocolVersion": "2025-03-26",
      "clientInfo": {"name": "my-client", "version": "1.0.0"}
    }
  }'&lt;/syntaxhighlight>
The response includes an &lt;code>MCP-Session-Id&lt;/code> header — include this in all subsequent requests.

&lt;span id="what-ai-clients-are-supported">&lt;/span>
== What AI clients are supported? ==

Any MCP-compatible client: '''ChatGPT''', '''Claude Desktop''', '''Cursor''', or any custom client implementing the MCP protocol.

&lt;span id="can-i-use-a-custom-login-page-for-mcp-oauth">&lt;/span>
== Can I use a custom login page for MCP OAuth? ==

Yes. Set the '''Custom Login URL''' field in the MCP service's Advanced Options. See [[AI_Services/Mcp_Custom_Login_Page|Custom Login Page for MCP]].

== See also ==
* [[AI_Services/Mcp_Service|MCP Server]]
* [[AI_Services/AI_Chat|AI Chat]]
* [[AI_Services/AI_Connection|AI Connection]]

[[Category:Mcp]]
[[Category:Model_Context_Protocol]]
[[Category:Faq]]
Return to [AI Services/Mcp Faq](/AI_Services/Mcp_Faq).

Retrieved from "[https://wiki.dreamfactory.com/AI_Services/Mcp_Faq](https://wiki.dreamfactory.com/AI_Services/Mcp_Faq)"